Selaa lähdekoodia

add sass support

mightyplow 5 vuotta sitten
vanhempi
commit
0c3ecc5ef9
3 muutettua tiedostoa jossa 15 lisäystä ja 0 poistoa
  1. 9 0
      package-lock.json
  2. 1 0
      package.json
  3. 5 0
      src/typings/cssModules.d.ts

+ 9 - 0
package-lock.json

@@ -6426,6 +6426,15 @@
       "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
       "dev": true
     },
+    "sass": {
+      "version": "1.23.7",
+      "resolved": "https://registry.npmjs.org/sass/-/sass-1.23.7.tgz",
+      "integrity": "sha512-cYgc0fanwIpi0rXisGxl+/wadVQ/HX3RhpdRcjLdj2o2ye/sxUTpAxIhbmJy3PLQgRFbf6Pn8Jsrta2vdXcoOQ==",
+      "dev": true,
+      "requires": {
+        "chokidar": ">=2.0.0 <4.0.0"
+      }
+    },
     "sax": {
       "version": "1.2.4",
       "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",

+ 1 - 0
package.json

@@ -47,6 +47,7 @@
     "react-router": "^5.1.2",
     "react-router-dom": "^5.1.2",
     "react-swipe": "^6.0.4",
+    "sass": "^1.23.7",
     "tslint": "^5.20.1"
   }
 }

+ 5 - 0
src/typings/cssModules.d.ts

@@ -2,3 +2,8 @@ declare module '*.css' {
   const styles: { [className: string]: string };
   export default styles;
 }
+
+declare module '*.scss' {
+  const styles: { [className: string]: string };
+  export default styles;
+}