diff --git a/.node-version b/.node-version index 6b17d22..cb406c6 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -14.16.1 +16.20.2 diff --git a/packages/scss-config-webpack-plugin/config/development.config.js b/packages/scss-config-webpack-plugin/config/development.config.js index d0c8408..ef3df06 100644 --- a/packages/scss-config-webpack-plugin/config/development.config.js +++ b/packages/scss-config-webpack-plugin/config/development.config.js @@ -46,7 +46,7 @@ exports = module.exports = (options) => ({ { loader: require.resolve('sass-loader'), options: { - implementation: require('node-sass'), + implementation: require('sass'), }, }, ], @@ -99,7 +99,7 @@ exports = module.exports = (options) => ({ { loader: require.resolve('sass-loader'), options: { - implementation: require('node-sass'), + implementation: require('sass'), }, }, ], diff --git a/packages/scss-config-webpack-plugin/config/production.config.js b/packages/scss-config-webpack-plugin/config/production.config.js index 31da1e8..159100a 100644 --- a/packages/scss-config-webpack-plugin/config/production.config.js +++ b/packages/scss-config-webpack-plugin/config/production.config.js @@ -61,7 +61,7 @@ exports = module.exports = (options) => ({ { loader: require.resolve('sass-loader'), options: { - implementation: require('node-sass'), + implementation: require('sass'), sourceMap: true, }, }, @@ -122,7 +122,7 @@ exports = module.exports = (options) => ({ { loader: require.resolve('sass-loader'), options: { - implementation: require('node-sass'), + implementation: require('sass'), sourceMap: true, }, }, diff --git a/packages/scss-config-webpack-plugin/package.json b/packages/scss-config-webpack-plugin/package.json index 4f22a02..905379b 100644 --- a/packages/scss-config-webpack-plugin/package.json +++ b/packages/scss-config-webpack-plugin/package.json @@ -30,7 +30,7 @@ "css-loader": "^5.2.4", "iconfont-webpack-plugin": "^5.0.1", "mini-css-extract-plugin": "^1.5.0", - "node-sass": "^5.0.0", + "sass": "1.54.3", "optimize-css-assets-webpack-plugin": "^5.0.4", "postcss": "^8.2.10", "postcss-flexbugs-fixes": "^5.0.2", diff --git a/packages/scss-config-webpack-plugin/test/__snapshots__/ScssConfigWebpackPlugin.test.js.snap b/packages/scss-config-webpack-plugin/test/__snapshots__/ScssConfigWebpackPlugin.test.js.snap index 158564f..863d212 100644 --- a/packages/scss-config-webpack-plugin/test/__snapshots__/ScssConfigWebpackPlugin.test.js.snap +++ b/packages/scss-config-webpack-plugin/test/__snapshots__/ScssConfigWebpackPlugin.test.js.snap @@ -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}"`;