Skip to content

Commit

Permalink
Fix lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Jul 26, 2019
1 parent 392d32b commit 4671016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 1 addition & 7 deletions lib/WebpackConfig.js
Expand Up @@ -116,13 +116,7 @@ class WebpackConfig {
this.copyFilesConfigs = [];
this.sassOptions = {
resolveUrlLoader: true,
resolveUrlLoaderOptions: {
engine: 'postcss',
keepQuery: false,
removeCR: false,
debug: false,
silent: false
}
resolveUrlLoaderOptions: {}
};
this.preactOptions = {
preactCompat: false
Expand Down
10 changes: 6 additions & 4 deletions lib/loaders/sass.js
Expand Up @@ -30,10 +30,12 @@ module.exports = {
// entry file, not the file that contains the url()
sassLoaders.push({
loader: 'resolve-url-loader',
options: {
sourceMap: webpackConfig.useSourceMaps,
...webpackConfig.sassOptions.resolveUrlLoaderOptions
}
options: Object.assign(
{
sourceMap: webpackConfig.useSourceMaps
},
webpackConfig.sassOptions.resolveUrlLoaderOptions
)
});
}

Expand Down

0 comments on commit 4671016

Please sign in to comment.