Sass Loader Error: Invalid options object that does not match the API schema

后端 未结 7 481
别跟我提以往
别跟我提以往 2020-12-16 09:40

I\'m using VueJS with the framework VuetifyJS (v2.0.19). I\'m getting this error after running npm run serve:

Sass Loader has been initialise

7条回答
  •  有刺的猬
    2020-12-16 10:24

    change data to prependData. Final result (vue.config.js):

    module.exports = {
        css: {
            loaderOptions: {
                sass: {
                    prependData: `@import "@/sass/variables.sass"`
                }
            }
        }
    }
    

提交回复
热议问题