You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2023/05/05 10:47:23 UTC

[pulsar-manager] 01/02: feat(dep): Use dart-sass instead of node-sass (#496)

This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch branch-0.4.0
in repository https://gitbox.apache.org/repos/asf/pulsar-manager.git

commit 8e9cc3f08d1e8798324b89f40c629a572372801a
Author: Zixuan Liu <no...@gmail.com>
AuthorDate: Fri May 5 16:08:26 2023 +0800

    feat(dep): Use dart-sass instead of node-sass (#496)
    
    Co-authored-by: tison <wa...@gmail.com>
---
 front-end/build/utils.js | 7 +++++--
 front-end/package.json   | 8 ++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/front-end/build/utils.js b/front-end/build/utils.js
index 9127fe7..e258789 100644
--- a/front-end/build/utils.js
+++ b/front-end/build/utils.js
@@ -78,9 +78,12 @@ exports.cssLoaders = function(options) {
     postcss: generateLoaders(),
     less: generateLoaders('less'),
     sass: generateLoaders('sass', {
-      indentedSyntax: true
+      indentedSyntax: true,
+      implementation: require('sass')
+    }),
+    scss: generateLoaders('sass', {
+      implementation: require('sass')
     }),
-    scss: generateLoaders('sass'),
     stylus: generateLoaders('stylus'),
     styl: generateLoaders('stylus')
   }
diff --git a/front-end/package.json b/front-end/package.json
index a1979a2..59500ec 100644
--- a/front-end/package.json
+++ b/front-end/package.json
@@ -88,7 +88,6 @@
     "mini-css-extract-plugin": "0.4.1",
     "nightwatch": "^1.0.19",
     "node-notifier": "5.2.1",
-    "node-sass": "8.0.0",
     "optimize-css-assets-webpack-plugin": "5.0.0",
     "ora": "3.0.0",
     "path-to-regexp": "2.4.0",
@@ -98,7 +97,9 @@
     "postcss-url": "7.3.2",
     "request": "^2.88.0",
     "rimraf": "2.6.2",
-    "sass-loader": "7.0.3",
+    "sass": "^1.56.1",
+    "sass-loader": "^7.3.1",
+    "script-ext-html-webpack-plugin": "^2.1.5",
     "script-loader": "0.7.2",
     "semver": "5.5.0",
     "serve-static": "1.13.2",
@@ -113,8 +114,7 @@
     "webpack": "4.16.5",
     "webpack-cli": "3.1.0",
     "webpack-dev-server": "3.2.1",
-    "webpack-merge": "4.1.4",
-    "script-ext-html-webpack-plugin": "^2.1.5"
+    "webpack-merge": "4.1.4"
   },
   "engines": {
     "node": ">=16",