module.exports = {
entry: {
- "geo": {
- import: './src/geo/index.js',
- }
+ "geo": './src/geo/index.js',
+ "chart": './src/chart/index.js',
},
output: {
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'org.argeo.app.js/org/argeo/app/js'),
- publicPath:'/pkg/org.argeo.app.js',
+ publicPath: '/pkg/org.argeo.app.js',
clean: true,
},
optimization: {
filename: 'geo.html',
chunks: ['geo'],
}),
+ new HtmlWebpackPlugin({
+ title: 'Argeo Suite Chart JS',
+ template: 'src/chart/index.html',
+ scriptLoading: 'module',
+ filename: 'chart.html',
+ chunks: ['chart'],
+ }),
],
};
\ No newline at end of file