diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 4e39154..33672c3 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -1,5 +1,4 @@ import gulp from 'gulp' -import replace from 'gulp-replace' import rename from 'gulp-rename' import ignore from 'gulp-ignore' @@ -7,18 +6,21 @@ import ignore from 'gulp-ignore' const copyCss = (done) => { gulp.src(['./build/static/css/main.*.chunk.css']) - .pipe(rename('community.css')) + .pipe(rename('community.min.css')) .pipe(gulp.dest('./js-deliver')) done() } const copyJs = (done) => { gulp.src(['./build/static/js/main.*.chunk.js']) - .pipe(rename('community.main.js')) + .pipe(rename('community.main.min.js')) + .pipe(gulp.dest('./js-deliver')) + gulp.src(['./build/static/js/runtime~main.*.js']) + .pipe(rename('community-runtime.min.js')) .pipe(gulp.dest('./js-deliver')) gulp.src(['./build/static/js/*.chunk.js']) .pipe(ignore.exclude('main.*')) - .pipe(rename('community.vendor.js')) + .pipe(rename('community.vendor.min.js')) .pipe(gulp.dest('./js-deliver')) done() } diff --git a/js-deliver/community-runtime.min.js b/js-deliver/community-runtime.min.js new file mode 100644 index 0000000..7c49b19 --- /dev/null +++ b/js-deliver/community-runtime.min.js @@ -0,0 +1,2 @@ +!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c