feat: 编译加速

使用前 npm run dev 需要22629ms, 使用后11678ms
pull/1382/head
ChasLui 2018-11-29 22:42:27 +08:00 committed by GitHub
parent 075d29acea
commit e29c3db5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ module.exports = {
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV !== 'production',
productionSourceMap: false,
parallel: require('os').cpus().length > 1,
devServer: {
port: port,
open: true,