Skip to content

Commit

Permalink
fix(cli): Compatible with vue-cli-service lint #1622
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 30, 2020
1 parent 3751d84 commit d6b1479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/uni-cli-shared/lib/plugin.js
Expand Up @@ -87,6 +87,8 @@ function initExtends (name, plugin, plugins) {

module.exports = {
init () {
// compatible with vue-cli-service lint
process.env.UNI_PLATFORM = process.env.UNI_PLATFORM || 'h5'
const plugins = resolvePlugins()
const plugin = plugins.find(plugin => plugin.name === process.env.UNI_PLATFORM)
if (!plugin) {
Expand Down

0 comments on commit d6b1479

Please sign in to comment.