-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef11141
commit 943f433
Showing
3 changed files
with
2,498 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import gulp from 'gulp' | ||
import replace from 'gulp-replace' | ||
import rename from 'gulp-rename' | ||
import ignore from 'gulp-ignore' | ||
|
||
// DL: we need to overwrite the paths of any asset that we include in the build | ||
|
||
const copyCss = (done) => { | ||
gulp.src(['./build/static/css/main.*.chunk.css']) | ||
.pipe(rename('community.css')) | ||
.pipe(gulp.dest('./js-deliver')) | ||
done() | ||
} | ||
|
||
const copyJs = (done) => { | ||
gulp.src(['./build/static/js/main.*.chunk.js']) | ||
.pipe(rename('community.main.js')) | ||
.pipe(gulp.dest('./js-deliver')) | ||
gulp.src(['./build/static/js/*.chunk.js']) | ||
.pipe(ignore.exclude('main.*')) | ||
.pipe(rename('community.vendor.js')) | ||
.pipe(gulp.dest('./js-deliver')) | ||
done() | ||
} | ||
|
||
const defaultTasks = gulp.parallel(copyCss, copyJs) | ||
|
||
export default defaultTasks |
Oops, something went wrong.