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


You鈥檙e 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.

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?


Have a look at the template I just did. Let me know if I can help further

That template was gold. Here's a gist that that extends that thinking, looking at setting up a basic working environment:

Join the discussion

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

Join 68,099+ 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.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.