This commit is contained in:
syuilo
2021-10-03 23:51:54 +09:00
parent 9a33495694
commit 66369b4b1d
3 changed files with 51 additions and 34 deletions

View File

@ -95,14 +95,27 @@ module.exports = {
}]
}, {
test: /\.css$/,
use: [{
loader: 'vue-style-loader'
oneOf: [{
resourceQuery: /module/,
use: [{
loader: 'vue-style-loader'
}, {
loader: 'css-loader',
options: {
modules: true,
esModule: false, // TODO: trueにすると壊れる。Vue3移行の折にはtrueにできるかもしれない
}
}, postcss]
}, {
loader: 'css-loader',
options: {
esModule: false, // TODO: trueにすると壊れる。Vue3移行の折にはtrueにできるかもしれない
}
}, postcss]
use: [{
loader: 'vue-style-loader'
}, {
loader: 'css-loader',
options: {
esModule: false, // TODO: trueにすると壊れる。Vue3移行の折にはtrueにできるかもしれない
}
}, postcss]
}]
}, {
test: /\.svg$/,
use: [