- webpack config separation for development and production
- load only the necessary classes from leaflet
This commit is contained in:
parent
7857e2c5bb
commit
bc44385846
13 changed files with 883 additions and 209 deletions
17
webpack.development.js
Normal file
17
webpack.development.js
Normal 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',
|
||||
},
|
||||
});
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue