Browse Source

fixed webpack bundle not loaded on dev

bach 2 years ago
parent
commit
d9a415e04d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      build/webpack.config.dev.js

+ 4 - 0
build/webpack.config.dev.js

@@ -4,6 +4,7 @@ const webpack = require('webpack')
 const { merge } = require('webpack-merge')
 const baseConfig = require('./webpack.config.base')
 const MiniCssExtractPlugin = require("mini-css-extract-plugin");
+const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
 
 module.exports = merge(baseConfig, {
   mode: 'development',
@@ -48,5 +49,8 @@ module.exports = merge(baseConfig, {
 
   plugins: [
     // new webpack.HotModuleReplacementPlugin()
+    new BundleAnalyzerPlugin({
+      'analyzerMode': 'static'
+    })
   ]
 })