Menu icon Foundation
Gulp doesn't pack custom JS files in src/assets/js

Hello yetis!

I'm doing my first steps woth foundation 6 (but I know ZF5 very well) an its CLI (for ZURB template).
Now I facing an issue: my JS files (e.g. custom.js) in src/assets/js/ is not packed in app.js as described in http://foundation.zurb.com/sites/docs/starter-projects.html#javascript-compilation even the configuration in gulpfile.js seems correct:

javascript: [
    ...
    'src/assets/js/!(app.js)**/*.js',
    ...
    ]

Is there anything I missed for config?

Best regards from Switzerland

Ralph

gulp

Hello yetis!

I'm doing my first steps woth foundation 6 (but I know ZF5 very well) an its CLI (for ZURB template).
Now I facing an issue: my JS files (e.g. custom.js) in src/assets/js/ is not packed in app.js as described in http://foundation.zurb.com/sites/docs/starter-projects.html#javascript-compilation even the configuration in gulpfile.js seems correct:

javascript: [
    ...
    'src/assets/js/!(app.js)**/*.js',
    ...
    ]

Is there anything I missed for config?

Best regards from Switzerland

Ralph

This post has been closed. No new replies can be added.

Ralph Bolliger over 3 years ago

Hey there

I just figured out how I can get it to work: Just change the gulpfile.js from

'src/assets/js/!(app.js)**/*.js', 

to

 'src/assets/js/!(app.js)*.js',

and all your custom JS files will be packed by gulp.

Greetings from Switzerland

Ralph