Initial commit

This commit is contained in:
zhongjin
2020-06-13 18:34:34 +08:00
commit 52aaa9f15d
655 changed files with 96796 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
var bundles = require('./_browserify-bundles');
module.exports = {
task: function () {
var cfg = {};
for (var name in bundles) {
var bundle = bundles[name];
cfg[name] = {
src: bundle.src,
dest: bundle.dest,
options: {
watch: '<%= doWatchify %>',
browserifyOptions: {
debug: true // to generate source-maps
}
}
};
var opts = bundle.options;
if (opts) {
if (opts.external) cfg[name].options.external = opts.external;
if (opts.require) cfg[name].options.require = opts.require;
if (opts.transform) cfg[name].options.transform = opts.transform;
var bOpts = bundle.options.browserifyOptions;
if (bOpts) {
if (bOpts.standalone) cfg[name].options.browserifyOptions.standalone = bOpts.standalone;
}
}
}
return cfg;
}
};