问题:npm run dev时内存溢出 JS stack trace – JavaScript heap out of memory解决方法:
修改node_modules/.bin/webpack-dev-server.cmd文件(该文件的内容可能不同)
在"%dp0%…\webpack-dev-server\bin\webpack-dev-server.js" %*前增加:–max_old_space_size=4096
问题:npm run dev时内存溢出 JS stack trace – JavaScript heap out of memory解决方法:
修改node_modules/.bin/webpack-dev-server.cmd文件(该文件的内容可能不同)
在"%dp0%…\webpack-dev-server\bin\webpack-dev-server.js" %*前增加:–max_old_space_size=4096