All threads / How do I add Zurb foundation-sites using webpacker?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I add Zurb foundation-sites using webpacker?

Jason Brown asked in CSS

Hey Jason!

For the most part, you'll just follow their instructions which is usually yarn add package and an import or require of the package in your application.js.

https://foundation.zurb.com/sites/docs/installation.html

There's nothing special to using things now because we're just using Webpack for everything which most all Javascript modules have instructions for on how to use. You can just look for Webpack instructions and follow those almost every time. 👍

Hi Chris,

I have been trying to figure out how to install Foundation using yarn yarn add foundation-sites. I have run the code but I don't understand what to do next. Can you point me in the right direction?

Is there a reference implementation or example to follow?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.