- webpack config separation for development and production

- load only the necessary classes from leaflet
This commit is contained in:
Arno Kaimbacher 2021-08-25 17:52:09 +02:00
parent 7857e2c5bb
commit bc44385846
13 changed files with 883 additions and 209 deletions

17
webpack.development.js Normal file
View file

@ -0,0 +1,17 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const path = require('path');
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
contentBase: path.resolve(__dirname),
publicPath: "/", //should provide the path of the served js , img , etc...
writeToDisk: true,
compress: false,
port: 8080,
open: false,
stats: 'errors-only',
},
});