[TASK] Inline style and icon css and es6-shim
This commit is contained in:
parent
30b6f84b6d
commit
44571c51f0
|
@ -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"]);
|
||||
};
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<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-fontface.css">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="vendor/es6-shim/es6-shim.min.js"></script>
|
||||
<link rel="stylesheet" href="style.css?__inline=true">
|
||||
<script src="vendor/es6-shim/es6-shim.min.js?__inline=true"></script>
|
||||
<script src="app.js"></script>
|
||||
<script>
|
||||
console.log("Version: #revision#");
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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");
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue