配置如下:
{ "scripts": { "start": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --port 3000 --open" } }
用本地js起服务,不用全局的webpack
参考:https://github.com/webpack/webpack/issues/1914
配置如下:
{ "scripts": { "start": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --port 3000 --open" } }
用本地js起服务,不用全局的webpack
参考:https://github.com/webpack/webpack/issues/1914