Skip to content

Commit

Permalink
fix: increase Node memory limit to workaround webpack crash, fix vuej…
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Jun 25, 2018
1 parent 46dd855 commit bb98ef0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/@vue/cli-service/bin/vue-cli-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env node
#!/usr/bin/env node --max_old_space_size=4096

/**
* --max_old_space_size to increase V8 default heap size
* Temporary workaround for memory leaks in webpack and high memory usage
* from file watching & sourcemap generation.
* https://github.com/vuejs/vue-cli/issues/1453
*/

const semver = require('semver')
const { error } = require('@vue/cli-shared-utils')
Expand Down

0 comments on commit bb98ef0

Please sign in to comment.