Commit ffa9740a by Kevin Van Ransbeeck

Extra task to showcase (very basic) critical CSS extraction in grunt

1 parent 706dc74f
...@@ -175,6 +175,7 @@ module.exports = function(grunt) { ...@@ -175,6 +175,7 @@ module.exports = function(grunt) {
// Load necessairy grunt tasks based on npm modules. // Load necessairy grunt tasks based on npm modules.
require("load-grunt-tasks")(grunt); require("load-grunt-tasks")(grunt);
grunt.registerTask('build', ['uglify', 'svgstore', 'sass', 'concat_css', 'autoprefixer', 'php2html', 'cssmin']); grunt.registerTask('critical', ['uglify', 'svgstore', 'sass', 'concat_css', 'autoprefixer', 'php2html', 'penthouse' ,'inline', 'cssmin']);
grunt.registerTask('build', ['uglify', 'svgstore', 'sass', 'concat_css', 'autoprefixer', 'cssmin']);
grunt.registerTask('default', ['build','watch']); grunt.registerTask('default', ['build','watch']);
} }
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
"grunt-contrib-cssmin": "^0.10.0", "grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-uglify": "^0.6.0", "grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "~0.5.3", "grunt-contrib-watch": "~0.5.3",
"grunt-critical": "0.0.4",
"grunt-criticalcss": "^0.4.1",
"grunt-inline": "^0.3.2", "grunt-inline": "^0.3.2",
"grunt-penthouse": "^0.1.2", "grunt-penthouse": "^0.1.2",
"grunt-php2html": "^0.1.17", "grunt-php2html": "^0.1.17",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!