Closed vlrprbttst closed 8 years ago
run grunt processhtml:dev
to only target dev
so, i checked your repo.
add another block in your html
<!-- build:css:dev -->
<link rel="stylesheet" href="../_dev/critical-css/index.css">
<!-- /build -->
with dev
target, and without inline
I use processhtml to embed critical css. The problem I have is I only want it to be inlined on my build process, but have it removed while on dev.
my gruntfile.js looks like this:
from my source folder i have
and this works, but I would need an intermediate state where in DEV i have that line commented, and in DIST to be uncommented and inlined.
I doubt I was clear but I hope you get it. you can find the full thing here to better understand: https://github.com/vlrprbttst/BoxTent
Is there a way to achieve this? maybe via a comment/uncomment option or a template? thanks! :)