安装此插件后出现堆内存不足错误

作者: skirankumar7创建于 2019年10月4日更新于 2019年11月5日
标签Unverified

module.exports = { mode: 'development', devtool: 'cheap-module-source-map', entry: [ 'webpack-dev-server/client?http://0.0.0.0:4000', 'webpack/hot/dev-server', './src/index.js', ], output: { path: path.join(__dirname, '/static/js'), filename: 'static/js/bundle.js', }, resolve: { extensions: ['.js', '.json'], alias: { '@': path.resolve(__dirname, './src/'), }, }, plugins: [ new ErrorOverlayPlugin(), new MiniCssExtractPlugin({ filename: 'bundle.[hash].css', }), new webpack.HotModuleReplacementPlugin(), new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', externals: getDlls(), }), new Dotenv({ path: './env/.env.dev', }), new DashboardPlugin(), ], externals: { Properties: JSON.stringify(require('./reactProperties.dev.json')), }, module: { rules: [ { test: /.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', }, }, { test: /.css$/, use: [ 'style-loader', MiniCssExtractPlugin.loader, 'css-loader?url=false', ], }, { test: /ckeditor5-[^/]+/theme/[^/]+.css$/, use: [ { loader: 'style-loader', options: { singleton: true } …

内容来源: FormidableLabs/webpack-dashboard