Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
xssWhiteList filter style attribute & uglify instead of closurecompiler
Browse files Browse the repository at this point in the history
fixed xssWhiteList filter style attribute & uglify instead of
closurecompiler
  • Loading branch information
Phinome committed Jun 4, 2016
1 parent 7c5fc6b commit 8ac9ce5
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 511 deletions.
16 changes: 3 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@ module.exports = function (grunt) {
dest: disDir + '<%= pkg.name %>.parse.min.js'
}
},
closurecompiler: {
dist: {
src: disDir + '<%= pkg.name %>.all.js',
dest: disDir + '<%= pkg.name %>.all.min.js'
},
parse: {
src: disDir + '<%= pkg.name %>.parse.js',
dest: disDir + '<%= pkg.name %>.parse.min.js'
}
},
copy: {
base: {
files: [
Expand Down Expand Up @@ -229,14 +219,14 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-closurecompiler');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-transcoding');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', 'UEditor build', function () {

var tasks = [ 'concat', 'cssmin', 'closurecompiler', 'copy:base', 'copy:' + server, 'copy:demo', 'replace:demo', 'clean' ];
var tasks = [ 'concat', 'cssmin', 'uglify', 'copy:base', 'copy:' + server, 'copy:demo', 'replace:demo', 'clean' ];

if (encode === 'gbk') {
tasks.push('replace:fileEncode');
Expand Down Expand Up @@ -279,4 +269,4 @@ module.exports = function (grunt) {

}

};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"grunt": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-cssmin": "~0.6.0",
"grunt-closurecompiler": "~0.9.9",
"grunt-contrib-uglify": "~1.0.1",
"grunt-contrib-copy": "~0.4.0",
"grunt-transcoding": "~0.1.1",
"grunt-text-replace": "~0.3.9",
Expand Down
Loading

0 comments on commit 8ac9ce5

Please sign in to comment.