fixed webpack bundle not loaded on dev

This commit is contained in:
Bachir Soussi Chiadmi 2021-08-04 13:49:26 +02:00
parent 211fb965ee
commit d9a415e04d
1 changed files with 4 additions and 0 deletions

View File

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