简体   繁体   中英

Custom javascript files not compiling in app.js with Zurb Foundation and Zurb Template

From what I can gather on this page of the docs ( https://foundation.zurb.com/sites/docs/starter-projects.html#javascript-compilation ) it sounds like I can put a custom javascript file in src/assets/javascript and it will get compiled in app.js. However, that is not working for me. My custom .js file simply does not get put into app.js. Any ideas why? This is just a straight up fresh install of Foundation 6.4.3 and using the Zurb Template.

This worked for me, I just require instead of import so in my app.js I put:

require('./your-custom-js');

and it compiles with no issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM