提交 d6b1479d 编写于 作者: fxy060608's avatar fxy060608

fix(cli): Compatible with vue-cli-service lint #1622

上级 3751d848
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册