在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):googlearchive/polybuild开源软件地址(OpenSource Url):https://github.com/googlearchive/polybuild开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):polybuild is deprecated!Polymer CLI or polymer-build instead.Please use thePolybuild
Polybuild combines vulcanize, crisper, and polyclean into one easy to use solution for optimizing Polymer applications for production. Polybuild exposes a gulp plugin, and a small command line tool to fit your build environment. Command Line ToolInstall:
Use:
Output: The equivalent command line usage is:
Gulp PluginInstall:
Use in var gulp = require('gulp');
var polybuild = require('polybuild');
gulp.task('build', function() {
return gulp.src('index.html')
.pipe(polybuild())
.pipe(gulp.dest('.'))
;
}) Output: The equivalent OptionsPolyBuild has two options: "maximum crush" and "suffix". First option affects whether the output javascript is minified, or only has whitespace removed, second option needed if you want change default "build" suffix. If you have a more advanced use case than is provided, please copy the equivalent portions of the command line or gulp internals as a starting point. Example of options usage on the command line with flags:
which will output the file You can use options in gulp, like in this example //...
.pipe(polybuild({maximumCrush: true, suffix: 'build'})
//... |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论