Pārlūkot izejas kodu

Postcss autoprefixer and postcss-svg settings, compression for sass

Artur Paikin 9 gadi atpakaļ
vecāks
revīzija
5f5f170b16
2 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 8 2
      website/_config.yml
  2. 1 7
      website/themes/uppy/_config.yml

+ 8 - 2
website/_config.yml

@@ -118,15 +118,21 @@ markdown:
 
 
 node_sass:
 node_sass:
   debug: false
   debug: false
-  outputStyle: nested
+  outputStyle: compressed
   precision: 5
   precision: 5
   sourceComments: false
   sourceComments: false
 
 
 postcss:
 postcss:
   plugins:
   plugins:
     postcss-svg:
     postcss-svg:
-      paths: ['images']
+      debug: false
+      paths:
+        - 'src/images'
       defaults: "[fill]: #000000"
       defaults: "[fill]: #000000"
+    autoprefixer:
+      browsers:
+        - 'last 2 versions'
+
 
 
 # Deployment
 # Deployment
 ## Docs: https://hexo.io/docs/deployment.html
 ## Docs: https://hexo.io/docs/deployment.html

+ 1 - 7
website/themes/uppy/_config.yml

@@ -1,11 +1,5 @@
 node_sass:
 node_sass:
   debug: false
   debug: false
-  outputStyle: nested
+  outputStyle: compressed
   precision: 5
   precision: 5
   sourceComments: false
   sourceComments: false
-
-postcss:
-  plugins:
-    postcss-svg:
-      paths: ['images']
-      defaults: "[fill]: #000000"