Closed melcarthus closed 6 years ago
In guess the plugin files are not made for simple concatenation. You should use a module loader/bundler. Than you also don't need to specify the list of plugins you want to add but just import them into your JS and the module bundler will follow the imports.
Ok, thats another big change coming from 6.3 than for me. I was really scratching my head over this 'issue' not knowing what you just explained to me. Thanks!
Fixed in https://github.com/zurb/foundation-sites/pull/10864. This sould be released in v6.4.4
.
I wanted to start with using foundation x-y grid system. But when compiling my JS I get the error;
ReferenceError: Can't find variable: exports
If I use the the minified version of foundation.js (6.4.3) everything is fine and the js is working as it should. But I don't want all the plugins. I want to choose from my gulp.js what I want to use.
How to reproduce this bug:
What should happen:
the console should not log any errors about ReferenceError: Can't find variable: exports, and just work.
What happened instead:
I got ReferenceError: Can't find variable: exports
Foundation Version(s) you are using:
6.4.3 (also tested 6.4.2)
This is my Gulp file.