diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 9741cb1..5eb0ff4 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -44,6 +44,18 @@ module.exports = (grunt) -> } } + cssmin: { + main: { + files: { + 'build/min/styles.css': [ + 'build/bower_components/fontawesome/css/font-awesome.min.css' + 'build/bower_components/pure/pure-min.css' + 'build/styles/**/*.css' + ] + } + } + } + copy: { main: { expand: true @@ -95,6 +107,7 @@ module.exports = (grunt) -> grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.loadNpmTasks('grunt-contrib-stylus'); diff --git a/package.json b/package.json index 1605749..e9c51e3 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "grunt-contrib-connect": "0.8.x", "grunt-contrib-watch": "0.6.x", "grunt-contrib-uglify": "0.6.x", + "grunt-contrib-cssmin": "0.10.x", "grunt-contrib-copy": "0.7.x", "grunt-contrib-coffee": "0.12.x", "grunt-contrib-stylus": "0.20.x", diff --git a/source/documents/index-min.html.jade b/source/documents/index-min.html.jade index f1477eb..325e6c8 100644 --- a/source/documents/index-min.html.jade +++ b/source/documents/index-min.html.jade @@ -4,9 +4,7 @@ html(ng-app="sideBySide") title Side By Side viewer meta(charset="utf-8") link(rel="stylesheet", type="text/css", href="//fonts.googleapis.com/css?family=Noticia+Text:400,700,400italic,700italic") - link(rel="stylesheet", type="text/css", href="bower_components/fontawesome/css/font-awesome.min.css") - link(rel="stylesheet", type="text/css", href="bower_components/pure/pure-min.css") - link(rel="stylesheet", type="text/css", href="styles/style.css") + link(rel="stylesheet", type="text/css", href="min/styles.css") script(src="min/scripts.js") include includes/body.html.jade