vue.config.js
:
module.exports = {
devServer:{
runtimeCompiler: true, // 如果遇到 Invalid options in vue.config.js: "compiler" is not allowed 报错则写这行,否则可不写
port: 80
}
}
如果遇到报错:Invalid options in vue.config.js: "compiler" is not allowed
则增加字段: runtimeCompiler: true