]>
git.argeo.org Git - gpl/argeo-suite.git/blob - 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 "geo": './src/geo/index.js',
9 "chart": './src/chart/index.js',
12 filename
: '[name].[contenthash].js',
13 path
: path
.resolve(__dirname
, 'org.argeo.app.js/org/argeo/app/js'),
14 publicPath
: '/pkg/org.argeo.app.js',
18 moduleIds
: 'deterministic',
19 runtimeChunk
: 'single',
25 // // For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
27 // new CssMinimizerPlugin(),
35 MiniCssExtractPlugin
.loader
,
43 new MiniCssExtractPlugin(),
44 // deal with HTML generation
45 new HtmlWebpackPlugin({
46 title
: 'Argeo Suite Geo JS',
47 template
: 'src/geo/index.html',
48 scriptLoading
: 'module',
52 new HtmlWebpackPlugin({
53 title
: 'Argeo Suite Chart JS',
54 template
: 'src/chart/index.html',
55 scriptLoading
: 'module',
56 filename
: 'chart.html',