Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

bye-bye node-sass

Blue Mouse7467fbf95ef1
diff --git a/package.json b/package.json
index 1d9cc4f77..168132b9b 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,6 @@
"i18next-browser-languagedetector": "^6.1.2",
"lodash": "^4.17.21",
"nanoid": "^3.1.29",
- "node-sass": "^5.0.0",
"prismjs": "^1.25.0",
"prop-types": "^15.7.2",
"react": "^17.0.2",
@@ -46,9 +45,6 @@
"scripts": {
"start": "craco start",
"build": "craco build",
- "build:css": "cross-env sass --no-source-map src:src --load-path ./node_modules --style compressed",
- "watch:css": "cross-env npm run build-css && cross-env sass --no-source-map src:src --load-path ./node_modules --style compressed --watch",
- "build:cf-pages": "npm run build:css && npm run build",
"test": "craco test",
"eject": "react-scripts eject"
},
@@ -71,10 +67,10 @@
]
},
"devDependencies": {
+ "@tailwindcss/postcss7-compat": "^2.2.17",
"autoprefixer": "^9.8.8",
"cross-env": "^7.0.3",
"postcss": "^7.0.39",
- "sass": "^1.42.1",
- "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.16"
+ "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
}
}
diff --git a/src/index.scss b/src/index.scss
deleted file mode 100644
index 292f90752..000000000
--- a/src/index.scss
+++ /dev/null
@@ -1,40 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-html {
- scroll-behavior: smooth;
-}
-
-body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
-}
-
-.label {
- text-overflow: clip;
- white-space: nowrap;
- overflow-x: auto;
- scrollbar-width: thin;
-}
-
-.disabled {
- opacity: 0.8;
- cursor: not-allowed;
-}
-
-.hoverable {
- transition: opacity 300ms;
-
- &:hover {
- opacity: 0.75;
- }
-}