Giter Club home page Giter Club logo

Comments (4)

Va1 avatar Va1 commented on June 12, 2024

sorry for such a delay. it may be caused by how webpack injects paths. i would advice you to debug by checking the contents of the subject files in the moment of replacement – it's possible that they're not there at that moment. otherwise, if it is not an issue anymore (after almost 2 years lol), close it. thanks

from string-replace-loader.

AllanJard avatar AllanJard commented on June 12, 2024

I know this is an old one now, but I'm hitting the same issue and think I know what is causing it, but not how to resolve it. The loader is operating on the entry point only - but I need the string replacement to happen on the files that get resolved as a result of the entry point. I'd guess the original issue was because of the same thing.

from string-replace-loader.

AllanJard avatar AllanJard commented on June 12, 2024

Looks like the answer is in #54. Use a plug-in.

from string-replace-loader.

Va1 avatar Va1 commented on June 12, 2024

thanks for your answer @AllanJard . the tricky part with projects like this is in that Webpack setups are very different in different projects and it is therefore usually quite hard to debug and find a solution. what i'm trying to provide with the loader is that it works in the expected & consistent way when it's used in a clean & simple, isolated Webpack setup, as automated tests verify. even though i'm happy to have a look into the issue and answer questions, everything beyond is up to a user.

i believe, this one can be now closed as well, then.

from string-replace-loader.

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.