Menu icon Foundation
How to Add JS file from NPM - Foundation 6.4
  • Hi, I have a new Foundation 6.4 Zurb template site installed through the CLI and Im struggling to add the js resources of an additional NPM package. On the previous version of 6.3 I added a line in the config.yml file  

     

    javascript:

    - "node_modules/slick-carousel/slick/slick.min.js"

     

    Can anyone help with how to add js files from the node_module folder?

     

    Thanks

     

    M

     

     

     

     

     

webpackjs

  • Hi, I have a new Foundation 6.4 Zurb template site installed through the CLI and Im struggling to add the js resources of an additional NPM package. On the previous version of 6.3 I added a line in the config.yml file  

     

    javascript:

    - "node_modules/slick-carousel/slick/slick.min.js"

     

    Can anyone help with how to add js files from the node_module folder?

     

    Thanks

     

    M