Added uglify command to build function (#124)

This commit is contained in:
makeupsomething
2017-10-06 05:29:46 +09:00
committed by Jeffrey Warren
parent 829e19e58d
commit 7cbf793655
4 changed files with 4964 additions and 4547 deletions

View File

@@ -1,6 +1,7 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
@@ -27,6 +28,13 @@ module.exports = function(grunt) {
src: ['src/ImageSequencer.js'],
dest: 'dist/image-sequencer.js'
}
},
uglify: {
dist: {
src: ['./dist/image-sequencer.js'],
dest: './dist/image-sequencer.min.js'
}
}
});
@@ -35,7 +43,8 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['watch']);
grunt.registerTask('build', [
'browserify:dist'
'browserify:dist',
'uglify:dist'
]);
};

8222
dist/image-sequencer.js vendored

File diff suppressed because one or more lines are too long

1
dist/image-sequencer.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -39,6 +39,7 @@
"grunt": "^0.4.5",
"grunt-browserify": "^5.0.0",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-uglify": "git://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
"grunt-contrib-watch": "^0.6.1",
"image-filter-core": "~1.0.0",
"image-filter-threshold": "~1.0.0",