module.exports = {
entry: {
- "org.argeo.app.geo.js": {
- import: './src/org.argeo.app.geo.js/index.js',
- }
+ "geo": './src/geo/index.js',
+ "chart": './src/chart/index.js',
},
output: {
filename: '[name].[contenthash].js',
- path: path.resolve(__dirname, 'org.argeo.app.geo.js/org/argeo/app/geo/js'),
+ path: path.resolve(__dirname, 'org.argeo.app.js/org/argeo/app/js'),
+ publicPath: '/pkg/org.argeo.app.js',
clean: true,
},
optimization: {
new MiniCssExtractPlugin(),
// deal with HTML generation
new HtmlWebpackPlugin({
- title: 'Open Layers',
- template: 'src/org.argeo.app.geo.js/index.html',
+ title: 'Argeo Suite Geo JS',
+ template: 'src/geo/index.html',
scriptLoading: 'module',
+ filename: 'geo.html',
+ chunks: ['geo'],
+ }),
+ new HtmlWebpackPlugin({
+ title: 'Argeo Suite Chart JS',
+ template: 'src/chart/index.html',
+ scriptLoading: 'module',
+ filename: 'chart.html',
+ chunks: ['chart'],
}),
],