最近,我将sass-加载程序从8.0升级到了9.0,当我运行npm run build (vue-cli-service build)时,我得到了这个错误
ValidationError: Invalid options object. Sass Loader has been initialized using an options
object that does not match the API schema.- options has an unknown property 'prependData'唯一出现的单词prependData是在我的vue.config.js中
{
//...
publicPath: process.env.VUE_APP_ASSETS_PUBLIC_PATH,
css: {
loaderOptions: {
scss: { // \/\/\/\/ here's prependData below
prependData: `
@import "~@salesforce-ux/design-system/design-tokens/dist/theme-one-salesforce.default.scss";
`
}
}
}发布于 2020-07-07 16:07:30
将prependData中的vue.config.js更改为additionalData。
关于vue-加载程序的变更量9.0.0的更多信息
指南现在也推荐additionalData。
https://stackoverflow.com/questions/62779449
复制相似问题