Release the files required by the bundle are all listed in build.json
under the "required"
and "optional"
section in the JSON.
"required": {
"pace-js": {
"scripts": [
"{$config.path.node_modules}/pace-js/pace.js"
]
},
"jquery": {
"scripts": [
"{$config.path.node_modules}/jquery/dist/jquery.js"
]
},
"jquery-ui": {
"scripts": [
"{$config.path.src}/custom/plugins/jquery-ui-cust/jquery-ui-cust.js"
]
},
"bootstrap": {
"styles": [
"{$config.path.src}/scss/bootstrap.scss"
],
"scripts": [
"{$config.path.node_modules}/popper.js/dist/umd/popper.js",
"{$config.path.node_modules}/bootstrap/dist/js/bootstrap.js"
]
},
The output parameters are defined in the "bundle"
section of the JSON:
"bundle": {
"styles": "{$config.output}/css/vendors.bundle.css",
"scripts": "{$config.output}/js/vendors.bundle.js",
"images": "{$config.output}/img",
"fonts": "{$config.output}/webfonts",
"json": "{$config.output}/media/data/",
"media": "{$config.output}/media"
}
The bundling itself is affected by the parameters defined in the "compile"
section.
"compile": {
"jsUglify": false,
"cssMinify": false,
"jsSourcemaps": false,
"cssSourcemaps": true,
"autoprefixer": true,
"seedOnly": false,
"rtl": false
},
The actual bundling takes place in the bundle
function inside the .\build\compile.js
around line 193:
bundle: function (bundle) {
var _self = this;
var tasks = [];
if (typeof bundle.src !== 'undefined' && typeof bundle.bundle !== 'undefined') {
// etc.
}
return tasks;
},
Hope this helps,