Skip to content

Commit

Permalink
feat(main-config): 自改配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
aitexiaoy committed Jul 8, 2019
1 parent cdbe450 commit f2173b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .electron-vue/webpack.main.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { dependencies } = require('../package.json')
const webpack = require('webpack')
const fs= require('fs')
// 检测是否有用户配置文件,没有的话根据模板生成一个
const userConfigPath=path.resolve(__dirname,'../.user-config1.js')
const userConfigPath=path.resolve(__dirname,'../.user-config.js')
if(fs.existsSync(userConfigPath)){
fs.copyFileSync(path.resolve(__dirname,'../user-config.template.js'), userConfigPath)
}
Expand Down

0 comments on commit f2173b3

Please sign in to comment.