-
微信miniapp需要使用gulp-msapp-require加载npm模块或通用模块
资源介绍
gulp-msapp-require
微信miniapp需要npm模块或自定义通用模块。
安装
npm install gulp-msapp-require --save-dev
用法
var gulp = require("gulp")
var msappRequire = require("gulp-msapp-require")
// msappRequire(options)
gulp.task("release", function() {
gulp.src(["src/**/*"])
.pipe(gulp.dest("./dist")) // gulp-msapp-require will change the origin file's dependency path, the best way is building in a new folder