Hello Rebecca
pkgjs-depends css-minimizer-webpack-plugin
# css-minimizer-webpack-plugin@7.0.0
DEPENDENCIES:
node-ampproject-remapping (@jridgewell/trace-mapping)
node-browserslist (browserslist)
node-caniuse-api (caniuse-api)
node-commander (commander)
node-css-loader (postcss-selector-parser)
node-css-select (css-select)
node-css-selector-tokenizer (cssesc)
node-css-tree (css-tree)
node-css-what (css-what)
node-jest-worker (jest-worker)
node-picocolors (picocolors)
node-postcss (postcss)
node-postcss-value-parser (postcss-value-parser)
node-schema-utils (schema-utils)
node-serialize-javascript (serialize-javascript)
node-trysound-sax (@trysound/sax)
MISSING:
css-minimizer-webpack-plugin
└── cssnano (7.0.6)
└── cssnano-preset-default (7.0.6)
└── css-declaration-sorter (7.2.0)
└── cssnano-utils (5.0.0)
└── postcss-calc (10.0.2)
└── postcss-colormin (7.0.2)
└── colord (2.9.3)
└── postcss-convert-values (7.0.4)
└── postcss-discard-comments (7.0.3)
└── postcss-discard-duplicates (7.0.1)
└── postcss-discard-empty (7.0.0)
└── postcss-discard-overridden (7.0.0)
└── postcss-merge-longhand (7.0.4)
└── stylehacks (7.0.4)
└── postcss-merge-rules (7.0.4)
└── (^) cssnano-utils (5.0.0)
└── postcss-minify-font-values (7.0.0)
└── postcss-minify-gradients (7.0.0)
└── (^) colord (2.9.3)
└── (^) cssnano-utils (5.0.0)
└── postcss-minify-params (7.0.2)
└── (^) cssnano-utils (5.0.0)
└── postcss-minify-selectors (7.0.4)
└── postcss-normalize-charset (7.0.0)
└── postcss-normalize-display-values (7.0.0)
└── postcss-normalize-positions (7.0.0)
└── postcss-normalize-repeat-style (7.0.0)
└── postcss-normalize-string (7.0.0)
└── postcss-normalize-timing-functions (7.0.0)
└── postcss-normalize-unicode (7.0.2)
└── postcss-normalize-url (7.0.0)
└── postcss-normalize-whitespace (7.0.0)
└── postcss-ordered-values (7.0.1)
└── (^) cssnano-utils (5.0.0)
└── postcss-reduce-initial (7.0.2)
└── postcss-reduce-transforms (7.0.0)
└── postcss-svgo (7.0.1)
└── svgo (3.3.2)
└── csso (5.0.5)
└── postcss-unique-selectors (7.0.3)
└── lilconfig (3.1.2)
only test_translations fails). Hence, I don't know whether the best
option is this incomplete 0.15, going back to 0.7 (again), or not using
this theme at all. (I chose not using this theme at all for my latest
pandas upload, but mostly because it was the one I could do right now.)
I need the new version for pyqtgraph, so I guess a partial 0.15 is better than
an old 0.7
I didn't manage to get webpack to find the installed Javascript packages
(see the history of the above branch for what I tried). Notes for any
future attempt:
- Some other packages successfully use webpack (
https://codesearch.debian.net/search?q=%28%5E%7C%5B+%2C%5D%29webpack+path%3Adebian%2Fcontrol&literal=0
), so looking at them and/or using pkg-js-tools might help. However, no
other Debian package appears to use sphinx-theme-builder or nodeenv
(heat-dashboard and masakari-dashboard say they build-depend on nodeenv
but don't appear to actually run it).
- I suspect the error message
"/builds/rnpalmer-guest/pydata-sphinx-theme/debian/output/source_dir/src/node_modules
doesn't exist or is not a directory" isn't actually accurate; it appears
to come from
https://sources.debian.org/src/node-enhanced-resolve/5.15.0-1/lib/ModulesInHierarchicalDirectoriesPlugin.js/?hl=75#L75,
so adding some debug prints there might be a good investigation method.
We would probably also need to package some more Javascript modules:
node-sass (RFP #998024; that suggests that rsass or node-node-sass
*might* be an alternative), node-sass-loader, and newer versions of
libjs-popper.js and node-mini-css-extract-plugin.
I just did
node webpack.config.js
and with some additional deps (node-html-webpack-plugin
node-copy-webpack-plugin node-mini-css-extract-plugin)
--- webpack.config.js 2024-10-15 14:32:18.331733604 +0000
+++ webpack.config.js.new 2024-10-15 14:46:18.449543286 +0000
@@ -14,7 +14,7 @@ const { resolve } = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
+//const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const dedent = require("dedent");
const { Compilation } = require("webpack");
@@ -153,7 +153,7 @@ module.exports = {
"bootstrap": resolve(scriptPath, "bootstrap.js"),
},
output: {filename: "scripts/[name].js", path: staticPath},
- optimization: {minimizer: ['...', new CssMinimizerPlugin()]},
+ //optimization: {minimizer: ['...', new CssMinimizerPlugin()]},
module: {
rules: [{
test: /\.scss$/,
but somewhat it wasn't generated...
I think we should try to keep the new version if possible, but I fail to
understand that nodejs
code.
G.