Trying to make PostCSS work as Hexo plugin

This commit is contained in:
Artur Paikin 2015-12-11 14:02:21 +03:00
parent 5ac9d15f5b
commit 69290b112d
4 changed files with 17 additions and 0 deletions

View file

@ -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:

View file

@ -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"
}
}

View file

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

View file

@ -0,0 +1,3 @@
body {
background-image: svg('uppy.svg', '[fill]: black');
}