X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=js%2Fwebpack.common.js;h=1f2f2a2b80d40c23590b34ff8305715fdde052fe;hb=7328e106f7523d006b9516651dc9f6dd5475b035;hp=88b22bceca39c6db19108027897d7ca080a31ceb;hpb=d20dc77d29ffae31c6c5b0a45b1b26224b80fc31;p=gpl%2Fargeo-suite.git diff --git a/js/webpack.common.js b/js/webpack.common.js index 88b22bc..1f2f2a2 100644 --- a/js/webpack.common.js +++ b/js/webpack.common.js @@ -5,13 +5,14 @@ const path = require('path'); module.exports = { entry: { - "org.argeo.app.geo.js": { - import: './src/org.argeo.app.geo.js/index.js', + "geo": { + import: './src/geo/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: { @@ -43,9 +44,11 @@ module.exports = { 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'], }), ],