Skip to content

the config to vue-cli2.0 is not working #98

@icemirror

Description

@icemirror

// package.json
"dependencies": {
...
"vue": "^2.5.2"
},
"devDependencies": {
"sass-resources-loader": "^1.3.5",
"webpack": "^3.6.0"
}
// build/utils.js

return {
...
scss: generateLoaders('sass').concat({
loader:'sass-resources-loader',
options:{
resources: path.resolve(__dirname, '../src/assets/css/_colors.scss')
}
}),
...
}

there is error report:

Module build failed:
border-top: 1px solid $border-color--light;
^
Undefined variable: "$border-color--light".

thanks for your valuable time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions