{"action":"closed","issue":{"url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/103","repository_url":"https://api.github.com/repos/dciccale/grunt-processhtml","labels_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/103/comments","events_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/103/events","html_url":"https://github.com/dciccale/grunt-processhtml/issues/103","id":163394452,"number":103,"title":"comment/uncomment code blocks","user":{"login":"vlrprbttst","id":4832752,"avatar_url":"https://avatars.githubusercontent.com/u/4832752?v=3","gravatar_id":"","url":"https://api.github.com/users/vlrprbttst","html_url":"https://github.com/vlrprbttst","followers_url":"https://api.github.com/users/vlrprbttst/followers","following_url":"https://api.github.com/users/vlrprbttst/following{/other_user}","gists_url":"https://api.github.com/users/vlrprbttst/gists{/gist_id}","starred_url":"https://api.github.com/users/vlrprbttst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlrprbttst/subscriptions","organizations_url":"https://api.github.com/users/vlrprbttst/orgs","repos_url":"https://api.github.com/users/vlrprbttst/repos","events_url":"https://api.github.com/users/vlrprbttst/events{/privacy}","received_events_url":"https://api.github.com/users/vlrprbttst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-01T13:21:34Z","updated_at":"2016-08-30T13:11:36Z","closed_at":"2016-08-30T13:11:36Z","body":"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.\r\n\r\nmy gruntfile.js looks like this:\r\n\r\n```\r\n        processhtml: {\r\n            dev: {\r\n                files: [{\r\n                    expand: true,\r\n                    cwd: '<%= source %>/',\r\n                    src: ['**/*.html'],\r\n                    dest: '<%= dev %>/',\r\n                    ext: '.html'\r\n                }, ],\r\n            },\r\n            build: {\r\n                files: [{\r\n                    expand: true,\r\n                    cwd: '<%= dev %>/',\r\n                    src: ['**/*.html'],\r\n                    dest: '<%= site %>/',\r\n                    ext: '.html'\r\n                }, ],\r\n            }\r\n        },\r\n```\r\n\r\nfrom my source folder i have\r\n\r\n```\r\n<!-- build:css:build inline -->\r\n<link rel=\"stylesheet\" href=\"../_dev/critical-css/index.css\">\r\n<!-- /build -->\r\n```\r\n\r\nand 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.\r\n\r\nI 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\r\n\r\nIs there a way to achieve this? maybe via a comment/uncomment option or a template?\r\nthanks! :)\r\n\r\n"}}
{"actor":{"display_login":"vlrprbttst"}}