Please, provide example of how to use with browserify
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- tooling
调研方向
从 issue 中展示的 Browserify/Gulp stream 以及 bundle-collapser 的用法或 API 入手。记录一个可运行的示例,明确它是作为 Browserify plugin 还是 pipeline transform 使用的,包括如何传递 stream。示例能够明确说明集成方式时即完成。
由索引模型根据 Issue 内容生成。
描述
I have code that look like this:
( ... )
var collapse = require('bundle-collapser');
( ... )
var b = browserify({
entries: admin_app_src,
cache: {},
packageCache: {},
plugin: [watchify]
}).transform('babelify', { "presets" : ["latest"] });
( ... )
function bundle() {
return b.bundle()
( ... )
.pipe( collapse() ) // <-- this does not work
( ... )
.pipe( source('build.js') )
( ... )
.pipe( buffer() )
( ... )
.pipe( uglify() )
( ... )
.pipe(gulp.dest('./assets/js'));
}
I can't seem to get bundle-collapser to work, no matter how I try to »implement« it – either as a plugin or in the pipeline.
Could you please provide an example of how to do this?
My problem seems to be how to pass the stream into the collapser ...
Also tried:
( ... )
}).transform('collapse', 'babelify', { "presets" : ["latest"] });
- 主要语言
- JavaScript
- 星标
- 191
- 派生
- 11
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserify/bundle-collapser 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
browserify/bundle-collapser#25 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
browserify/bundle-collapser#20 · 7 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
browserify/bundle-collapser#16 · 1 条评论 ·
查看 browserify/bundle-collapser 的全部 Issue
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 86/100
amponce/archive-movie-browser#354 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
saayam-for-all/webapp#1870 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Imageomics/OpenCite#66 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
chr15m/twiiit.com#20 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 88/100
antropos17/Aegis#629 ·
维护者通常 4 天内回复