X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=js%2Fwebpack.common.js;h=dccac82c4d767ac6163f2cebb1d6ddc5041e37b2;hb=ed73b22a28b4fe523dad3432d33077916d6215e9;hp=1f2f2a2b80d40c23590b34ff8305715fdde052fe;hpb=7328e106f7523d006b9516651dc9f6dd5475b035;p=gpl%2Fargeo-suite.git diff --git a/js/webpack.common.js b/js/webpack.common.js index 1f2f2a2..dccac82 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', + "graph": './src/graph/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 Graph JS', + template: 'src/graph/index.html', + scriptLoading: 'module', + filename: 'graph.html', + chunks: ['graph'], + }), ], }; \ No newline at end of file