Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
Sharing sass files between an npm package and a ruby gem

I have two libraries where I am creating view components. One library is written in sass for styles and typescript for markup. The other is using ruby for the markup (view helpers) and also using sass for the stylsheets.

I want to share the sass between both frameworks. The gem is a rails engine so it has this directory structure:

-app
--assets
---stylesheets
----engine_name
-----button.scss

the npm package is something like

-src
--components
---button.scss

How could these two codebases cleanly share button.scss I don't mind having both the gem and npm package in the same repo and accessing a common directory but how do you import sass files in a rails engine if the files are not actually at app/assets/**

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!