在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):buddyspike/gulp-jspm-build开源软件地址(OpenSource Url):https://github.com/buddyspike/gulp-jspm-build开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-jspm-buildGulp task to run jspm build and produce output as a Vinyl stream. Install
Usagevar jspm = require('gulp-jspm-build');
gulp.task('jspm', function(){
jspm({
bundles: [
{ src: 'app', dst: 'app.js' }
]
})
.pipe(gulp.dest('.dist'));
}); OptionsbundlesAn array of bundles to create. Each object in the array specifies the
arguments to src
'app'
'core + navigation + app'
'app - react' dst
options
{ minify: true, mangle: true } bundleOptionsSame as configOptional, the jspm configuration file to use. configOverrideOverride sections of config.js. This could be useful if you want to change things like baseURL. configOverride: {
baseURL: '/foo'
} baseUrlThe jspm base URL, as normally specified in your bundleSfxCreate a single file executable, including all necessary dependencies and systemjs. Defaults to
Examplevar jspm = require('gulp-jspm-build');
gulp.task('jspm', function(){
jspm({
bundleOptions: {
minify: true,
mangle: true
}
bundles: [
{ src: 'app', dst: 'app.js' }
{
src: 'react + react-router',
dst: 'lib.js',
options: { mangle: false }
}
],
configOverride: {
baseURL: '/foo'
}
})
.pipe(gulp.dest('.dist'));
}); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论