* Update dependency sass-loader to v8

* Address node-sass webpack breaking changes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
This commit is contained in:
renovate[bot] 2020-03-24 14:15:45 +13:00 committed by GitHub
parent f4252159fd
commit 7777a7b727
3 changed files with 36 additions and 10 deletions

View File

@ -23623,18 +23623,30 @@
} }
}, },
"sass-loader": { "sass-loader": {
"version": "7.3.1", "version": "8.0.2",
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-7.3.1.tgz", "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-8.0.2.tgz",
"integrity": "sha512-tuU7+zm0pTCynKYHpdqaPpe+MMTQ76I9TPZ7i4/5dZsigE350shQWe5EZNl5dBidM49TPET75tNqRbcsUZWeNA==", "integrity": "sha512-7o4dbSK8/Ol2KflEmSco4jTjQoV988bM82P9CZdmo9hR3RLnvNc0ufMNdMrB0caq38JQ/FgF4/7RcbcfKzxoFQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"clone-deep": "^4.0.1", "clone-deep": "^4.0.1",
"loader-utils": "^1.0.1", "loader-utils": "^1.2.3",
"neo-async": "^2.5.0", "neo-async": "^2.6.1",
"pify": "^4.0.1", "schema-utils": "^2.6.1",
"semver": "^6.3.0" "semver": "^6.3.0"
}, },
"dependencies": { "dependencies": {
"ajv": {
"version": "6.12.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz",
"integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"clone-deep": { "clone-deep": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz",
@ -23646,6 +23658,16 @@
"shallow-clone": "^3.0.0" "shallow-clone": "^3.0.0"
} }
}, },
"schema-utils": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.5.tgz",
"integrity": "sha512-5KXuwKziQrTVHh8j/Uxz+QUbxkaLW9X/86NBlx/gnKgtsZA2GIVMUn17qWhRFwF8jdYb3Dig5hRO/W5mZqy6SQ==",
"dev": true,
"requires": {
"ajv": "^6.12.0",
"ajv-keywords": "^3.4.1"
}
},
"semver": { "semver": {
"version": "6.3.0", "version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",

View File

@ -207,7 +207,7 @@
"request-promise": "4.2.5", "request-promise": "4.2.5",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"rtlcss": "2.5.0", "rtlcss": "2.5.0",
"sass-loader": "7.3.1", "sass-loader": "8.0.2",
"style-loader": "0.23.1", "style-loader": "0.23.1",
"stylelint": "9.10.1", "stylelint": "9.10.1",
"stylelint-config-wordpress": "13.1.0", "stylelint-config-wordpress": "13.1.0",

View File

@ -158,9 +158,13 @@ const webpackConfig = {
}, },
{ {
loader: 'sass-loader', loader: 'sass-loader',
query: { options: {
includePaths: [ 'client/stylesheets/abstracts' ], sassOptions: {
data: includePaths: [
'client/stylesheets/abstracts',
],
},
prependData:
'@import "node_modules/@wordpress/base-styles/_colors.scss"; ' + '@import "node_modules/@wordpress/base-styles/_colors.scss"; ' +
'@import "node_modules/@wordpress/base-styles/_variables.scss"; ' + '@import "node_modules/@wordpress/base-styles/_variables.scss"; ' +
'@import "node_modules/@wordpress/base-styles/_mixins.scss"; ' + '@import "node_modules/@wordpress/base-styles/_mixins.scss"; ' +