X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=js%2Fwebpack.common.js;h=ba57965fd4aeceb226b08a643a85b3e907994e3c;hb=79b4fb23149f87a95cbf4478d9d4dc55dd82dfa8;hp=1f2f2a2b80d40c23590b34ff8305715fdde052fe;hpb=7328e106f7523d006b9516651dc9f6dd5475b035;p=gpl%2Fargeo-suite.git diff --git a/js/webpack.common.js b/js/webpack.common.js index 1f2f2a2..ba57965 100644 --- a/js/webpack.common.js +++ b/js/webpack.common.js @@ -5,14 +5,13 @@ const path = require('path'); 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: { @@ -50,6 +49,13 @@ module.exports = { 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