From ba0188002b89b6504510e39d28c33268d30c1011 Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:57:06 +0200 Subject: [PATCH] Fixed SASS files compilation for production environment --- package-lock.json | 41 +++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 42 insertions(+) diff --git a/package-lock.json b/package-lock.json index ed4cc9c1..7f3f5705 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "prettier": "~3.3", "regenerator-runtime": "~0.14", "sass": "~1.79", + "sass-loader": "~16.0", "ts-loader": "~9.5", "typescript": "~5.6", "vanilla-cookieconsent": "3.0.1", @@ -9940,6 +9941,46 @@ "node": ">=14.0.0" } }, + "node_modules/sass-loader": { + "version": "16.0.2", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-16.0.2.tgz", + "integrity": "sha512-Ll6iXZ1EYwYT19SqW4mSBb76vSSi8JgzElmzIerhEGgzB5hRjDQIWsPmuk1UrAXkR16KJHqVY0eH+5/uw9Tmfw==", + "dev": true, + "dependencies": { + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 18.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "@rspack/core": "0.x || 1.x", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@rspack/core": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, "node_modules/sass/node_modules/chokidar": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", diff --git a/package.json b/package.json index 99b90fc2..6a253be8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "file-loader": "~6.2", "webpack-cli": "~5.1", "lint-staged": "~15.2", + "sass-loader": "~16.0", "normalize.css": "~8.0", "bootstrap-icons": "~1.11", "webpack-notifier": "~1.15",