Fix options for new css-loader

This commit is contained in:
AkiraFukushima 2020-08-20 22:38:17 +09:00
parent c3b4a99d0b
commit 801903c2ff
1 changed files with 44 additions and 4 deletions

View File

@ -31,19 +31,59 @@ let rendererConfig = {
}, },
{ {
test: /\.scss$/, test: /\.scss$/,
use: ['vue-style-loader', 'css-loader', 'sass-loader'] use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
modules: false,
esModule: false
}
},
'sass-loader'
]
}, },
{ {
test: /\.sass$/, test: /\.sass$/,
use: ['vue-style-loader', 'css-loader', 'sass-loader?indentedSyntax'] use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
modules: false,
esModule: false
}
},
'sass-loader?indentedSyntax'
]
}, },
{ {
test: /\.less$/, test: /\.less$/,
use: ['vue-style-loader', 'css-loader', 'less-loader'] use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
modules: false,
esModule: false
}
},
'less-loader'
]
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: ['vue-style-loader', 'css-loader'] use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
modules: false,
esModule: false
}
}
]
}, },
{ {
test: /\.html$/, test: /\.html$/,