diff --git a/Gruntfile.js b/Gruntfile.js index 1e79651..2c15b33 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,7 +1,7 @@ module.exports = function (grunt) { grunt.loadTasks("tasks"); - grunt.registerTask("default", ["bower-install-simple", "lint", "copy", "sass", "postcss", "requirejs"]); + grunt.registerTask("default", ["bower-install-simple", "lint", "copy", "sass", "postcss", "requirejs", "inline"]); grunt.registerTask("lint", ["eslint"]); grunt.registerTask("dev", ["default", "connect:server", "watch"]); }; diff --git a/html/index.html b/html/index.html index 2783ae0..5c89e8d 100644 --- a/html/index.html +++ b/html/index.html @@ -3,11 +3,11 @@ - + - - + + diff --git a/package.json b/package.json index 98738ec..2ffe259 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "grunt-contrib-uglify": "^1.0.1", "grunt-contrib-watch": "^1.0.0", "grunt-eslint": "^18.1.0", + "grunt-inline": "^0.3.6", "grunt-postcss": "^0.8.0", "grunt-sass": "^1.2.0" }, diff --git a/tasks/build.js b/tasks/build.js index 388904b..54cad5a 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -85,6 +85,16 @@ module.exports = function (grunt) { } } }, + inline: { + dist: { + options: { + cssmin: true, + uglify: true + }, + src: "build/index.html", + dest: "build/index.html" + } + }, "bower-install-simple": { options: { directory: "<%=bowerdir%>", @@ -118,4 +128,5 @@ module.exports = function (grunt) { grunt.loadNpmTasks("grunt-contrib-requirejs"); grunt.loadNpmTasks("grunt-sass"); grunt.loadNpmTasks("grunt-postcss"); + grunt.loadNpmTasks("grunt-inline"); };