X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.geo.js%2Fwebpack.common.js;h=f57ff6696fa01e678decb8d06610c751803a8df4;hb=737346afd15e56f9339a7c41ed4e26d65bbcbe69;hp=1821cc9fa2d0d831ff381f343c79cad36ea0a225;hpb=9f938815994b335b62368fb8e8d911b79b6a453c;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.geo.js/webpack.common.js b/org.argeo.app.geo.js/webpack.common.js index 1821cc9..f57ff66 100644 --- a/org.argeo.app.geo.js/webpack.common.js +++ b/org.argeo.app.geo.js/webpack.common.js @@ -1,5 +1,5 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); +//const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); @@ -19,11 +19,11 @@ module.exports = { splitChunks: { chunks: 'all', }, - minimizer: [ - // For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line - `...`, - new CssMinimizerPlugin(), - ], +// minimizer: [ +// // For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line +// `...`, +// new CssMinimizerPlugin(), +// ], }, module: { rules: [ @@ -37,12 +37,13 @@ module.exports = { ], }, plugins: [ - // deal with CSS +// // deal with CSS new MiniCssExtractPlugin(), // deal with HTML generation new HtmlWebpackPlugin({ title: 'Open Layers', template: 'src/org.argeo.app.geo.js/index.html', + scriptLoading: 'module', }), ],