Skip to content

Commit

Permalink
Merge pull request #132 from merkle-open/feature/replace-node-sass-wi…
Browse files Browse the repository at this point in the history
…th-sass

feat(scss-config-webpack-plugin): Replace deprecated Node Sass with Sass
  • Loading branch information
ernscht committed Jun 6, 2023
2 parents 02e3683 + 9810b23 commit 2504140
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exports = module.exports = (options) => ({
{
loader: require.resolve('sass-loader'),
options: {
implementation: require('node-sass'),
implementation: require('sass'),
},
},
],
Expand Down Expand Up @@ -99,7 +99,7 @@ exports = module.exports = (options) => ({
{
loader: require.resolve('sass-loader'),
options: {
implementation: require('node-sass'),
implementation: require('sass'),
},
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports = module.exports = (options) => ({
{
loader: require.resolve('sass-loader'),
options: {
implementation: require('node-sass'),
implementation: require('sass'),
sourceMap: true,
},
},
Expand Down Expand Up @@ -122,7 +122,7 @@ exports = module.exports = (options) => ({
{
loader: require.resolve('sass-loader'),
options: {
implementation: require('node-sass'),
implementation: require('sass'),
sourceMap: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/scss-config-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"css-loader": "^5.2.4",
"iconfont-webpack-plugin": "^5.0.1",
"mini-css-extract-plugin": "^1.5.0",
"node-sass": "^5.0.0",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"postcss": "^8.2.10",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^4.2.0",
"postcss-safe-parser": "^5.0.2",
"resolve-url-loader": "^3.1.2",
"sass": "1.49.0",
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ exports[`ScssConfigWebpackPlugin inside webpack context should avoid common flex
".foo {
display: flex;
flex-direction: row;
flex: 1 1; }
"
flex: 1 1;
}"
`;

exports[`ScssConfigWebpackPlugin inside webpack context should avoid common flexbox bugs in older browsers in development mode with sourcemap 1`] = `
".foo {
display: flex;
flex-direction: row;
flex: 1 1; }"
flex: 1 1;
}"
`;

exports[`ScssConfigWebpackPlugin inside webpack context should avoid common flexbox bugs in older browsers in production mode 1`] = `".foo{display:flex;flex-direction:row;flex:1 1}"`;
Expand Down

0 comments on commit 2504140

Please sign in to comment.