Answer the question
In order to leave comments, you need to log in
How to import scss into .vue component?
Unable to import file in .vue component . Installed everything needed - npm install -D sass-loader node-sass .
Inside the style section , the scss syntax works fine, but if I want to import it, I get an error.
<style lang="scss">
import 'style.scss'
</style>
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader',
]
},
{
test: /\.scss$/,
use: [
'vue-style-loader',
'css-loader',
'sass-loader'
]
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question