diff --git a/assets/min/cache.manifest b/assets/min/cache.manifest new file mode 100644 index 0000000..99b6e18 --- /dev/null +++ b/assets/min/cache.manifest @@ -0,0 +1,8 @@ +CACHE MANIFEST + +# 1396383979640 + +assets/min/main.css +assets/min/main.js +assets/img/no_images.svg +assets/img/password.svg \ No newline at end of file diff --git a/build/Gruntfile.coffee b/build/Gruntfile.coffee index a9814e6..5080d49 100644 --- a/build/Gruntfile.coffee +++ b/build/Gruntfile.coffee @@ -42,6 +42,23 @@ module.exports = (grunt) -> files: '../assets/min/main.css': '../assets/min/main.css' + 'file-creator': + + manifest: + "../assets/min/cache.manifest": (fs, fd, done) -> + text = """ + CACHE MANIFEST + + # #{ (new Date()).valueOf().toString() } + + assets/min/main.css + assets/min/main.js + assets/img/no_images.svg + assets/img/password.svg + """ + fs.writeSync fd, text + done() + watch: js: @@ -68,6 +85,7 @@ module.exports = (grunt) -> grunt.task.run [ 'js' 'css' + 'file-creator' ] grunt.registerTask 'js', [ diff --git a/build/package.json b/build/package.json index dc695ca..90bff50 100644 --- a/build/package.json +++ b/build/package.json @@ -16,6 +16,7 @@ "grunt-contrib-cssmin": "~0.9.0", "grunt-contrib-clean": "~0.5.0", "grunt-contrib-watch": "~0.6.0", - "load-grunt-tasks": "~0.4.0" + "load-grunt-tasks": "~0.4.0", + "grunt-file-creator": "~0.1.1" } -} \ No newline at end of file +} diff --git a/index.html b/index.html index e21d17b..ada8f8e 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +