Commit dade6edb authored by Tristan Cavelier's avatar Tristan Cavelier

sourceMap generation added *.min.js

parent afbda2cd
......@@ -82,11 +82,17 @@ module.exports = function (grunt) {
},
jio: {
src: 'jio.js', // '<%= pkg.name %>.js'
dest: 'jio.min.js'
dest: 'jio.min.js',
options: {
sourceMap: "jio.min.map"
}
},
jiodate: {
src: 'src/jio.date/jiodate.js',
dest: 'jiodate.min.js'
dest: 'jiodate.min.js',
options: {
sourceMap: "jiodate.min.map"
}
}
},
qunit: {
......
......@@ -56,7 +56,9 @@ zip:
@mkdir $(TMPDIR)/jio/storage
@echo "Minimizing JS..."
@cp jio.min.js $(TMPDIR)/jio/
@cp jio.min.map $(TMPDIR)/jio/
@cp jiodate.min.js $(TMPDIR)/jio/
@cp jiodate.min.map $(TMPDIR)/jio/
@$(UGLIFY) src/sha1.amd.js >$(TMPDIR)/jio/sha1.amd.min.js 2>/dev/null
@$(UGLIFY) src/sha2.amd.js >$(TMPDIR)/jio/sha2.amd.min.js 2>/dev/null
@$(UGLIFY) src/sha256.amd.js >$(TMPDIR)/jio/sha256.amd.min.js 2>/dev/null
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment