]>
git.argeo.org Git - gpl/argeo-suite.git/blob - org.argeo.app.geo.js/webpack.common.js
1 const MiniCssExtractPlugin
= require('mini-css-extract-plugin');
2 const CssMinimizerPlugin
= require('css-minimizer-webpack-plugin');
3 const HtmlWebpackPlugin
= require('html-webpack-plugin');
4 const path
= require('path');
8 index
: './src/org.argeo.app.geo.js/index.js'
11 filename
: '[name].[contenthash].js',
12 path
: path
.resolve(__dirname
, 'org/argeo/app/geo/js'),
16 moduleIds
: 'deterministic',
17 runtimeChunk
: 'single',
23 // For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
25 new CssMinimizerPlugin(),
33 MiniCssExtractPlugin
.loader
,
41 new MiniCssExtractPlugin(),
42 // deal with HTML generation
43 new HtmlWebpackPlugin({
45 template
: 'src/org.argeo.app.geo.js/index.html',
46 scriptLoading
: 'module',