Skip to content

Commit

Permalink
Add legacy file to minified
Browse files Browse the repository at this point in the history
  • Loading branch information
dixso committed Apr 19, 2017
1 parent b0d2d15 commit 8d4aaa1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -54,6 +54,14 @@ module.exports = function(grunt) {
files: {
'dist/custombox.min.js': ['dist/built/custombox.js']
}
},
legacy: {
options: {
mangle: false
},
files: {
'dist/custombox.legacy.min.js': ['dist/built/custombox.legacy.min.js']
}
}
},
concat: {
@@ -66,7 +74,7 @@ module.exports = function(grunt) {
'./node_modules/custom-event-polyfill/custom-event-polyfill.js',
'./node_modules/es6-promise/dist/es6-promise.auto.min.js',
],
dest: 'dist/custombox.legacy.min.js',
dest: 'dist/built/custombox.legacy.min.js',
},
},
clean: {
@@ -133,7 +141,7 @@ module.exports = function(grunt) {
});

let target = grunt.option('target') ? `:${grunt.option('target')}` : '';
grunt.registerTask('dist', ['clean:start', 'babel:dist', 'uglify:dist', 'autoprefixer:dist', 'cssmin:dist', 'concat:dist', 'usebanner', 'clean:end']);
grunt.registerTask('dist', ['clean:start', 'babel:dist', 'uglify:dist', 'autoprefixer:dist', 'cssmin:dist', 'concat:dist', 'uglify:legacy', 'usebanner', 'clean:end']);
grunt.registerTask('release', ['dist', 'update:bower', 'fixpack:dist', `bump${target}`]);

grunt.registerTask('update:bower', () => {

0 comments on commit 8d4aaa1

Please sign in to comment.