13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
|
|
// vue.config.js(放到项目根)
|
|||
|
|
module.exports = {
|
|||
|
|
chainWebpack: config => {
|
|||
|
|
const rule = config.module.rule('vue')
|
|||
|
|
rule.use('vue-loader').tap(options => {
|
|||
|
|
options = options || {}
|
|||
|
|
options.compilerOptions = options.compilerOptions || {}
|
|||
|
|
options.compilerOptions.isCustomElement = tag => ['MonitorView', 'MonitorControlView'].includes(tag)
|
|||
|
|
return options
|
|||
|
|
})
|
|||
|
|
}
|
|||
|
|
}
|