Giter Site home page Giter Site logo

Comments (3)

VFK avatar VFK commented on September 21, 2024

Hi Nicolas. This is actually a very good point. I'm thinking about something like this:

 rjs: {
          src: ['data-main.js', 'require-src.js'],
          tpl: '<script data-main="%s" src="%s"></script>'
      }

for single tag replacement and:

 rjs: {
          src: [['data-main.js', 'require-src.js'], ['script.js', 'script2.js']],
          tpl: '<script data-main="%s" src="%s"></script>'
      }

for multiple for continuity's sake.

If that's ok for you then i'm gonna add this in the future versions of the plugin. Will try to sort this all out as soon as i can :)

from gulp-html-replace.

nddery avatar nddery commented on September 21, 2024

That would be perfect, I did not think about that multiple case - and I guess that's what tripping me up trying to implement this myself... It keeps adding multiple entries in the generated HTML.

If I do end up to get this working OK, I'll ensure to submit a PR.

Thanks!

from gulp-html-replace.

VFK avatar VFK commented on September 21, 2024

I merged your PR, thank you. I'm a gonna update the readme and publish the new version.

from gulp-html-replace.

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.