Skip to content

Commit

Permalink
Fix: 细节
Browse files Browse the repository at this point in the history
  • Loading branch information
Maorey committed May 18, 2020
1 parent 664b113 commit dc8e65a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ module.exports = {
),
}
ENV.APP_VERSION =
require('./build/updateJSON')('package.json', 'version') || ''
require('./build/updateJSON')('package.json', 'version') ||
ENV.APP_VERSION ||
''
for (const att in ENV) {
REG_ENV.test(att) && (env[prefix + att] = JSON.stringify(ENV[att]))
}
Expand Down

0 comments on commit dc8e65a

Please sign in to comment.