Tidy webpack configs.

This commit is contained in:
orangemug 2018-10-09 20:43:35 +01:00
parent 2fcdb47fe5
commit 36e35eb208
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
"use strict";
var webpack = require('webpack');
var path = require('path');
var loaders = require('./webpack.loaders');
var rules = require('./webpack.rules');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
@ -28,7 +28,7 @@ module.exports = {
noParse: [
/mapbox-gl\/dist\/mapbox-gl.js/
],
rules: loaders
rules: rules
},
node: {
fs: "empty",

View file

@ -1,6 +1,6 @@
var webpack = require('webpack');
var path = require('path');
var loaders = require('./webpack.loaders');
var rules = require('./webpack.rules');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
@ -25,7 +25,7 @@ module.exports = {
noParse: [
/mapbox-gl\/dist\/mapbox-gl.js/
],
rules: loaders
rules: rules
},
node: {
fs: "empty",
@ -48,8 +48,8 @@ module.exports = {
{
from: './src/manifest.json',
to: 'manifest.json'
}
]),
}
]),
new BundleAnalyzerPlugin({
analyzerMode: 'static',
defaultSizes: 'gzip',