Skip to content

Commit 4671016

Browse files
author
Diego
committed
Fix lint job
1 parent 392d32b commit 4671016

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

lib/WebpackConfig.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,7 @@ class WebpackConfig {
116116
this.copyFilesConfigs = [];
117117
this.sassOptions = {
118118
resolveUrlLoader: true,
119-
resolveUrlLoaderOptions: {
120-
engine: 'postcss',
121-
keepQuery: false,
122-
removeCR: false,
123-
debug: false,
124-
silent: false
125-
}
119+
resolveUrlLoaderOptions: {}
126120
};
127121
this.preactOptions = {
128122
preactCompat: false

lib/loaders/sass.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ module.exports = {
3030
// entry file, not the file that contains the url()
3131
sassLoaders.push({
3232
loader: 'resolve-url-loader',
33-
options: {
34-
sourceMap: webpackConfig.useSourceMaps,
35-
...webpackConfig.sassOptions.resolveUrlLoaderOptions
36-
}
33+
options: Object.assign(
34+
{
35+
sourceMap: webpackConfig.useSourceMaps
36+
},
37+
webpackConfig.sassOptions.resolveUrlLoaderOptions
38+
)
3739
});
3840
}
3941

0 commit comments

Comments
 (0)