andrewscwei / generator-vars-jekyll

Generator for raw web app with CircleCI, Jekyll, Webpack, Express + more.
MIT License
19 stars 3 forks source link

generate task and front matter #3

Closed joshualinog closed 9 years ago

joshualinog commented 9 years ago

@andrewscwei Is there any way to put a environment flag on the generate/build task that still minifies, BUT keeps the front matter intact on the .html/.md files? cloudcannon is a cms solution that uses front matter in its client editing solution.

andrewscwei commented 9 years ago

Short answer: no.

Front matters are parsed by the Jekyll generator, so obviously they won't be present in generated files. If you are using CloudCannon then you shouldn't need the Gulp pipeline provided by this generator. I believe CloudCannon handles all asset compression (minifying JS/CSS) for you when it deploys your site.