mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 21:30:14 +08:00
feat: 编译加速
使用前 npm run dev 需要22629ms, 使用后11678ms
This commit is contained in:
parent
075d29acea
commit
e29c3db5f0
@ -22,6 +22,7 @@ module.exports = {
|
|||||||
assetsDir: 'static',
|
assetsDir: 'static',
|
||||||
lintOnSave: process.env.NODE_ENV !== 'production',
|
lintOnSave: process.env.NODE_ENV !== 'production',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
parallel: require('os').cpus().length > 1,
|
||||||
devServer: {
|
devServer: {
|
||||||
port: port,
|
port: port,
|
||||||
open: true,
|
open: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user