Open xxyuze opened 5 years ago
gulp.task('vant', function () { gulp.src('./node_modules/vant-weapp/dist/{common,mixins,cell,cell-group,button,loading,field,tabs,tab,tag,icon,popup,overlay,transition}/**/*.{wxml,wxss,js,json}') .pipe(gulp.dest('dist/libs/vant')); })
嗯,这个需求确实存在,
但是似乎很难自动化实现
如果 把所有 .json 的 components 和 dependences 把依赖关系提取出来, 但是这个存在风险,组件库中也有依赖
gulp.task('vant', function () { gulp.src('./node_modules/vant-weapp/dist/{common,mixins,cell,cell-group,button,loading,field,tabs,tab,tag,icon,popup,overlay,transition}/**/*.{wxml,wxss,js,json}') .pipe(gulp.dest('dist/libs/vant')); })