diff --git a/package.json b/package.json index 2ade349..ea50e71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "voltranjs", - "version": "1.1.10", + "version": "1.1.11", "main": "src/index.js", "author": "Hepsiburada Technology Team", "bin": { @@ -66,7 +66,6 @@ "js-cookie": "^2.2.1", "mini-css-extract-plugin": "2.5.2", "newrelic": "^9.1.0", - "node-sass": "9.0.0", "pixrem": "4.0.1", "pleeease-filters": "4.0.0", "postcss": "7.0.5", @@ -83,11 +82,10 @@ "react-router-dom": "5.1.2", "regenerator-runtime": "^0.13.9", "rimraf": "3.0.2", - "sass-loader": "12.4.0", "serve-static": "1.14.1", "source-map-support": "0.5.21", "string-replace-loader": "3.1.0", - "style-loader": "3.3.1", + "style-loader": "3.3.4", "styled-components": "5.1.0", "svg-url-loader": "7.1.1", "terser-webpack-plugin": "5.3.1", @@ -100,6 +98,8 @@ "webpack-merge": "5.8.0", "webpack-node-externals": "3.0.0", "whatwg-fetch": "2.0.4", + "sass": "^1.82.0", + "sass-loader": "^16.0.4", "xss": "^1.0.8" }, "devDependencies": { @@ -109,7 +109,8 @@ "enzyme-adapter-react-16": "^1.15.5", "enzyme-to-json": "^3.6.1", "jest": "^26.6.3", - "sass-resources-loader": "2.2.5" + + "sass-resources-loader": "^2.2.5" }, "scripts": { "lint": "npm run eslint && npm run prettier", diff --git a/webpack.client.config.js b/webpack.client.config.js index 22fd6fe..dcc674f 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -174,7 +174,7 @@ const clientConfig = merge(commonConfig, voltranClientConfig, { : `${voltranConfig.prefix}-[path][name]__[local]`, localIdentHashSalt: packageJson.name }, - importLoaders: 1, + importLoaders: 2, sourceMap: isDebug } }, @@ -183,7 +183,13 @@ const clientConfig = merge(commonConfig, voltranClientConfig, { options: postCssConfig }, { - loader: "sass-loader" + loader: "sass-loader", + options: { + implementation: require("sass"), + sassOptions: { + outputStyle: "compressed" + } + } }, ...(voltranConfig.sassResources ? [