@@ -122,6 +122,12 @@ node_sass:
precision: 5
sourceComments: false
+postcss:
+ plugins:
+ postcss-svg:
+ paths: ['images']
+ defaults: "[fill]: #000000"
+
# Deployment
## Docs: https://hexo.io/docs/deployment.html
# deploy:
@@ -24,7 +24,9 @@
"browserify": "^12.0.1",
"chalk": "^1.1.1",
"glob": "^6.0.1",
+ "hexo-renderer-postcss": "^1.0.1",
"multi-glob": "^1.0.1",
+ "postcss-svg": "^1.0.4",
"watchify": "^3.6.1"
}
@@ -3,3 +3,9 @@ node_sass:
outputStyle: nested
@@ -0,0 +1,3 @@
+body {
+ background-image: svg('uppy.svg', '[fill]: black');
+}