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