更新配置文件
This commit is contained in:
@@ -77,5 +77,5 @@ npm run build
|
|||||||
### Lints and fixes files
|
### Lints and fixes files
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run lint
|
npm run lint:fix
|
||||||
```
|
```
|
||||||
|
11
package.json
11
package.json
@@ -6,9 +6,14 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve --mode development",
|
||||||
"build": "vue-cli-service build",
|
"serve:production": "vue-cli-service serve --mode production",
|
||||||
"lint": "vue-cli-service lint"
|
"serve:all": "vue-cli-service serve --host 0.0.0.0 --mode development",
|
||||||
|
"serve:local": "vue-cli-service serve --host 127.0.0.1 --mode development",
|
||||||
|
"build": "vue-cli-service build --mode production",
|
||||||
|
"build:modern": "vue-cli-service build --mode production --modern",
|
||||||
|
"lint:check": "vue-cli-service lint --no-fix",
|
||||||
|
"lint:fix": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"codemirror": "^5.63.0",
|
"codemirror": "^5.63.0",
|
||||||
|
@@ -1,4 +1,9 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const packageName = process.env.npm_package_name;
|
||||||
|
|
||||||
|
if (packageName) {
|
||||||
|
process.title = packageName;
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
@@ -17,8 +22,8 @@ module.exports = {
|
|||||||
// 标题
|
// 标题
|
||||||
title: 'Frost 网址导航',
|
title: 'Frost 网址导航',
|
||||||
// 包含的块
|
// 包含的块
|
||||||
chunks: ['chunk-common', 'chunk-vendors', 'mainPage']
|
chunks: ['chunk-common', 'chunk-vendors', 'mainPage'],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
pluginOptions: {
|
pluginOptions: {
|
||||||
@@ -26,12 +31,13 @@ module.exports = {
|
|||||||
preProcessor: 'less',
|
preProcessor: 'less',
|
||||||
// 全局 Less 变量
|
// 全局 Less 变量
|
||||||
patterns: [
|
patterns: [
|
||||||
path.resolve(__dirname, 'src/assets/css/variable.less')
|
path.resolve(__dirname, 'src/assets/css/variable.less'),
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 9005
|
host: '0.0.0.0',
|
||||||
|
port: 9005,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user