mirror of https://github.com/layui/layui
优化 gulp 发行文件的示例输出
parent
81a9d11aae
commit
afabea8440
|
@ -116,7 +116,8 @@ exports.release = gulp.series(
|
|||
return gulp.src('./release/introduce/**/*')
|
||||
.pipe(replace(/[^'"]+(\/layui\.css)/, 'layui/css$1')) // 替换 css 引入路径中的本地 path
|
||||
.pipe(replace(/[^'"]+(\/layui\.js)/, 'layui$1')) // 替换 js 引入路径中的本地 path
|
||||
.pipe(gulp.dest(rlsDirname));
|
||||
.pipe(gulp.dest(rlsDirname)) // 用于本地
|
||||
.pipe(gulp.dest('./examples/introduce')); // 用于 Github actions
|
||||
},
|
||||
exports.cp, // 复制 dist 目录文件
|
||||
() => { // 生成 ZIP 压缩包
|
||||
|
|
Loading…
Reference in New Issue