I want to be able to search multiple base paths for assets referenced in my bundle.config.json file. For example, I have assets split up between app/core/assets/ and a set of subdirectories defined as app/sprinkles/*/assets/. I tried setting my base option as:
base: '../app/{core/assets/,sprinkles/*/assets/}';
This is the syntax specified in the npm glob module.
gulp-bundle-assets seems to recognize the curly-brace syntax, but it doesn't seem to construct the paths to my assets correctly. For example, I have this in my bundle.config.json:
{
"bundle": {
"js/main": {
"scripts": [
"vendor/bootstrap-3.3.6/js/bootstrap.js",
"vendor/jQueryValidation-1.14.0/jquery.validate.js",
"vendor/jQueryValidation-1.14.0/additional-methods.js"
]
When I run my build task, I get output like this:
Bundle 'js/main.scripts' using ../../../../../../core/assets/vendor/bootstrap-3.3.6/js/bootstrap.js
So, for some reason it is losing the app/, and instead trying to move way back up the directory tree.
I want to be able to search multiple base paths for assets referenced in my
bundle.config.jsonfile. For example, I have assets split up betweenapp/core/assets/and a set of subdirectories defined asapp/sprinkles/*/assets/. I tried setting mybaseoption as:base: '../app/{core/assets/,sprinkles/*/assets/}';This is the syntax specified in the npm glob module.
gulp-bundle-assetsseems to recognize the curly-brace syntax, but it doesn't seem to construct the paths to my assets correctly. For example, I have this in mybundle.config.json:When I run my build task, I get output like this:
Bundle 'js/main.scripts' using ../../../../../../core/assets/vendor/bootstrap-3.3.6/js/bootstrap.jsSo, for some reason it is losing the
app/, and instead trying to move way back up the directory tree.