remove annoying sass workflow

This commit is contained in:
amphineko 2020-03-21 08:10:08 +08:00
parent 23363060f7
commit 477a84f67e
No known key found for this signature in database
GPG Key ID: 4582E6587852EF42

View File

@ -19,17 +19,10 @@ module.exports = {
module: { module: {
rules: [ rules: [
{ {
test: /\.(jpg|png|svg)$/, test: /\.(eot|jpg|png|svg|ttf|woff2?)$/,
loader: 'file-loader', loader: 'file-loader',
options: { options: {
name: 'assets/images/[name].[contenthash:8].[ext]' name: 'assets/[name].[contenthash:8].[ext]'
}
},
{
test: /\.(eot|svg|ttf|woff2?)$/,
loader: 'file-loader',
options: {
name: 'assets/webfonts/[name].[contenthash:8].[ext]'
} }
}, },
{ {
@ -39,11 +32,15 @@ module.exports = {
'extract-loader', 'extract-loader',
{ {
loader: 'css-loader', loader: 'css-loader',
options: { options: { sourceMap: true }
importLoaders: 1,
},
}, },
'sass-loader', {
loader: 'resolve-url-loader',
options: {
engine: 'postcss',
sourceMap: true
}
}
], ],
}, },
], ],