Update webpack

This commit is contained in:
Tim Schaub
2021-03-22 11:28:46 -06:00
parent 5425401b1b
commit 54e981f59a
5 changed files with 2642 additions and 10598 deletions

View File

@@ -58,7 +58,6 @@ module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
sourceMap: true,
// Do not minify examples that inject code into workers
exclude: [/(color-manipulation|region-growing|raster)\.js/],
extractComments: false,
@@ -94,10 +93,10 @@ module.exports = {
filename: '[name].js',
path: path.join(__dirname, '..', '..', 'build', 'examples'),
},
node: {
fs: 'empty', // required by ol-mapbox-stlye
},
resolve: {
fallback: {
fs: false,
},
alias: {
// allow imports from 'ol/module' instead of specifiying the source path
ol: path.join(__dirname, '..', '..', 'src', 'ol'),