Skip to content

Commit 95deb20

Browse files
author
郑傲今
committed
feat: Relative path
1 parent f1d7a08 commit 95deb20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
** 配置文件 **
44
5-
1、theme :主题配置
6-
2、html :在 index.html 中,使用 <%= htmlWebpackPlugin.options.xxx %> 来访问 html 中的属性,可扩展
5+
1、html :在 index.html 中,使用 <%= htmlWebpackPlugin.options.xxx %> 来访问 html 中的属性,可扩展
6+
2、theme :主题配置
77
3、global :全局变量,使用时前后加“__”,字母变大写,例如 __ENV__,可扩展
88
4、branch :所在分支,可用于打包时判断(测试/线上)环境,等等
99
5、proxy :本地代理,请在 proxy.config.js 中配置你需要代理的地址
@@ -19,6 +19,10 @@ const proxy = require('./proxy.config')
1919
const branch = cp.execSync('git rev-parse --abbrev-ref HEAD').toString().replace(/\s+/, '')
2020

2121
module.exports = {
22+
html: {
23+
title: 'REACT STARTER',
24+
fav: 'https://jines-z.github.io/images/favicon.ico'
25+
},
2226
theme: {
2327
'primary-color' : '#495060',
2428
'menu-dark-bg' : '#495060',
@@ -29,10 +33,6 @@ module.exports = {
2933
'border-radius-sm' : '2px',
3034
'font-family' : 'Microsoft YaHei'
3135
},
32-
html: {
33-
title: 'REACT STARTER',
34-
fav: 'https://jines-z.github.io/images/favicon.ico'
35-
},
3636
proxy,
3737
global : { env: NODE_ENV, branch },
3838
port : 8080,

0 commit comments

Comments
 (0)