[TASK] Inline style and icon css and es6-shim

This commit is contained in:
Xaver Maierhofer 2016-05-22 22:13:46 +02:00
parent fa9a29e0fa
commit 3a52717b3b
4 changed files with 16 additions and 4 deletions

View File

@ -1,7 +1,7 @@
module.exports = function (grunt) { module.exports = function (grunt) {
grunt.loadTasks("tasks"); 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("lint", ["eslint"]);
grunt.registerTask("dev", ["default", "connect:server", "watch"]); grunt.registerTask("dev", ["default", "connect:server", "watch"]);
}; };

View File

@ -3,11 +3,11 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no"> <meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="hopglass-icons.css"> <link rel="stylesheet" href="hopglass-icons.css?__inline=true">
<link rel="stylesheet" href="roboto-slab-fontface.css"> <link rel="stylesheet" href="roboto-slab-fontface.css">
<link rel="stylesheet" href="roboto-fontface.css"> <link rel="stylesheet" href="roboto-fontface.css">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css?__inline=true">
<script src="vendor/es6-shim/es6-shim.min.js"></script> <script src="vendor/es6-shim/es6-shim.min.js?__inline=true"></script>
<script src="app.js"></script> <script src="app.js"></script>
</head> </head>
<body> <body>

View File

@ -16,6 +16,7 @@
"grunt-contrib-uglify": "^1.0.1", "grunt-contrib-uglify": "^1.0.1",
"grunt-contrib-watch": "^1.0.0", "grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^18.1.0", "grunt-eslint": "^18.1.0",
"grunt-inline": "^0.3.6",
"grunt-postcss": "^0.8.0", "grunt-postcss": "^0.8.0",
"grunt-sass": "^1.2.0" "grunt-sass": "^1.2.0"
}, },

View File

@ -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": { "bower-install-simple": {
options: { options: {
directory: "<%=bowerdir%>", directory: "<%=bowerdir%>",
@ -118,4 +128,5 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-requirejs"); grunt.loadNpmTasks("grunt-contrib-requirejs");
grunt.loadNpmTasks("grunt-sass"); grunt.loadNpmTasks("grunt-sass");
grunt.loadNpmTasks("grunt-postcss"); grunt.loadNpmTasks("grunt-postcss");
grunt.loadNpmTasks("grunt-inline");
}; };