bluefox1688 / vue-cli-multi-page

因时间精力有限,项目已不再维护,请慎重使用,vue2-cli-vux2-multe-page,使用了webpack2+vuejs2+vuxUI2的多页面脚手架
829 stars 239 forks source link

关于开发环境编译后会出现内存过大超出的问题 #74

Open SongChao1123 opened 6 years ago

SongChao1123 commented 6 years ago

项目越来越大了 ,在使用 npm run dev 的环境编译后会内存过大溢出的情况,本人更换了各种npm和网站的相关配置,但并无效果,求作者解答一下

bluefox1688 commented 6 years ago

你的包大概有多大了?

SongChao1123 commented 6 years ago

打包后dist目录有8MB多 ,感觉并没有很大的

SongChao1123 commented 6 years ago

<--- Last few GCs --->

1333993 ms: Mark-sweep 685.4 (702.4) -> 684.0 (702.4) MB, 80.8 / 0.0 ms [allocation failure] [GC in old space requested]. 1334069 ms: Mark-sweep 684.0 (702.4) -> 683.9 (702.4) MB, 76.1 / 0.0 ms [allocation failure] [GC in old space requested]. 1334143 ms: Mark-sweep 683.9 (702.4) -> 685.7 (701.4) MB, 74.2 / 0.0 ms [last resort gc]. 1334219 ms: Mark-sweep 685.7 (701.4) -> 687.3 (701.4) MB, 75.8 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0C07B815 2: new constructor(aka ValueParser) [E:\wg_gamelive_m_view\node_modules\postcss-value-parser\lib\index.js:7] [pc=3B697794] (this=115FF115 <a ValueParser with map 22889921>,value=068CBFD5 <String[52]: linear-gradient(to right, #7947f7, #b029fd, #883bfc)>) 4: ValueParser [E:\wg_gamelive_m_view\node_modules\postcss-value-parser\lib\index.js:10] [pc=3B6977F3] (this=0C08A389 ,val...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory npm ERR! code ELIFECYCLE npm ERR! errno 3 npm ERR! vue2-webpack2-cli-vux2-multe-page@2.0.1 dev: node build/dev-server.js npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the vue2-webpack2-cli-vux2-multe-page@2.0.1 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\IGG\AppData\Roaming\npm-cache_logs\2018-03-26T01_43_28_787Z-debug.log

SongChao1123 commented 6 years ago

一直无解,查了很多资料 悲剧 , 求作者解答一下