webpack: Compress css in production mode

Adjust the WEBPACK_TEST file, as index.css is now not reliable (in
production mode it's .css.gz).

Closes #395
This commit is contained in:
Martin Pitt 2020-11-22 12:44:14 +01:00
parent 90c4b6ba5b
commit 169e06372c
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ const plugins = [
/* Only minimize when in production mode */
if (production) {
plugins.unshift(new CompressionPlugin({
test: /\.(js|html)$/,
test: /\.(js|html|css)$/,
deleteOriginalAssets: true
}));
}