Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模块打包从 js/ui到js/_ui 怎么写? #13

Open
momofiona opened this issue Sep 2, 2015 · 2 comments
Open

模块打包从 js/ui到js/_ui 怎么写? #13

momofiona opened this issue Sep 2, 2015 · 2 comments

Comments

@momofiona
Copy link

下面这样写实际上是生成到了 js/ui/js/ui 目录下了
···
gulp.src("./
**/js/ui/_*.js")
.pipe(transport())
.pipe(uglify())
.pipe(gulp.dest("./js/_ui"));
···

@momofiona
Copy link
Author

暂时修改了一行
var newId = parseId(options.relative?options.relative+file.relative:file.relative)
调用的时候用.pipe(transport({relative:'js/ui/'}))

不知道有没有不修改源码的实现方法

@guilipan
Copy link
Owner

guilipan commented Sep 7, 2015

@momofiona 你要修改base路径

gulp.src("./**/js/ui*.js",{base:"./**/js"})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants