mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-07 11:05:18 +02:00
Merge pull request #506 from chinchang/v5-fix-503
Fixes in the gulpfile
This commit is contained in:
commit
bf1c5b5a3b
12
gulpfile.js
12
gulpfile.js
@ -81,7 +81,7 @@ gulp.task('copyFiles', function () {
|
||||
.pipe(gulp.dest('build/lib/codemirror/addon/dialog')),
|
||||
gulp.src('src/lib/hint.min.css').pipe(gulp.dest('build/lib')),
|
||||
gulp.src('src/lib/inlet.css').pipe(gulp.dest('build/lib')),
|
||||
gulp.src('src/style.css').pipe(gulp.dest('build')),
|
||||
// gulp.src('src/style.css').pipe(gulp.dest('build')),
|
||||
|
||||
gulp
|
||||
.src([
|
||||
@ -100,14 +100,16 @@ gulp.task('useRef', function () {
|
||||
|
||||
gulp.task('concatSwRegistration', function () {
|
||||
return gulp
|
||||
.src(['src/service-worker-registration.js', 'app/script.js'])
|
||||
.src(['src/service-worker-registration.js', 'app/script.js'], {
|
||||
allowEmpty: true
|
||||
})
|
||||
.pipe(concat('script.js'))
|
||||
.pipe(gulp.dest('app'));
|
||||
});
|
||||
|
||||
gulp.task('minify', function () {
|
||||
minifyJs('app/script.js');
|
||||
minifyJs('app/vendor.js');
|
||||
// minifyJs('app/vendor.js');
|
||||
minifyJs('app/lib/screenlog.js');
|
||||
|
||||
return gulp
|
||||
@ -225,7 +227,7 @@ exports.release = series(
|
||||
'packageExtension',
|
||||
'buildDistFolder',
|
||||
'cleanup',
|
||||
function (error) {
|
||||
function (callback, error) {
|
||||
if (error) {
|
||||
console.log(error.message);
|
||||
} else {
|
||||
@ -245,7 +247,7 @@ exports.devRelease = gulp.series(
|
||||
// 'generate-service-worker',
|
||||
'buildDistFolder',
|
||||
'cleanup',
|
||||
function (error) {
|
||||
function (callback, error) {
|
||||
if (error) {
|
||||
console.log(error.message);
|
||||
} else {
|
||||
|
@ -4,7 +4,7 @@
|
||||
"description": "A blazing fast & offline web playground",
|
||||
"scripts": {
|
||||
"start": "concurrently --kill-others \"gulp start-preview-server\" \"npm run -s dev\"",
|
||||
"build": "preact build --template src/index.html --prerender false",
|
||||
"build": "preact build --template src/index.html --prerender false --no-inline-css",
|
||||
"dev": "preact watch --template src/index.html",
|
||||
"serve-website": "cd packages/website; npm start",
|
||||
"build-website": "cd packages/website; npm run build",
|
||||
|
Loading…
x
Reference in New Issue
Block a user