GithubHelp home page GithubHelp logo

Comments (4)

mikej avatar mikej commented on May 29, 2024

Hi @silva96 👋🏻 Did you ever manage to find a solution to this?

I’ve been running into the same issue trying to use flag-icons on a project (which includes SVG images that install under node_modules).

from cssbundling-rails.

silva96 avatar silva96 commented on May 29, 2024

@mikej nope, I wanted to ship the feature so I copied the files in my asset folder.

I was using the intl-tel-input js package, that adds flags to the left of an input where you fill your phone number, depending on the country area code.

from cssbundling-rails.

silva96 avatar silva96 commented on May 29, 2024

I also added this issue in propshaft, I'm not sure where it has to be solved actually

rails/propshaft#135

from cssbundling-rails.

scottysmalls avatar scottysmalls commented on May 29, 2024

So i had a similar issue with scss instead of css. My solution was solved by adding to the asset pipeline and adjusting some scss variables. A css solution might be similar. My plugin in question was stimulus-lightbox.

Using leads from rails/propshaft/issues/47

  1. I updated assets.rb to include the node_module root:
    Rails.application.config.assets.paths << Rails.root.join("node_modules", "lightgallery")
  2. I updated my application.scss file to change the variable paths used (before the import)
$lg-path-images: "./images";
$lg-path-fonts: "./fonts";

Hope this helps

from cssbundling-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.