Giter Site home page Giter Site logo

Comments (6)

jwvdiermen avatar jwvdiermen commented on July 21, 2024

Sounds like a strange issue. Let me know when you can reproduce this.

If anyone else has this issue, let me know. If so, I'll have a look at it.

from grunt-include-source.

wingedfox avatar wingedfox commented on July 21, 2024

I can confirm this now.
Still had no chance to investigate this to make exact steps to reproduce, but met it about 10 times in the last week on the windows and ubuntu.
It seems that this happens only when upper includes has massive changes and with the very last block only.

from grunt-include-source.

manuelnaranjo avatar manuelnaranjo commented on July 21, 2024

Actually this is pretty easy to reproduce, just chage index.html in the test directory, make sure the last statemente is as follows:

<!-- include: "type": "js", "files": ["js/_first.js","js/lib/**/*.js","<%= vars.jsPath %>/main.js"], "basePath":  "<%= vars.multipleBasePath %>" -->
    <script src="js/lib/dep1.js"></script>
<!-- /include -->

And it will create the following output:

<!-- include: "type": "js", "files": ["js/_first.js","js/lib/**/*.js","<%= vars.jsPath %>/main.js"], "basePath":  "<%= vars.multipleBasePath %>" -->
    <script src="js/_first.js"></script>
    <script src="js/lib/dep1.js"></script>
    <script src="js/lib/dep2.js"></script>
    <script src="js/main.js"></script>
<!-- /include -->

Noticed it didn't keep the order as dep1 should be first.

I'm investigating this issue as this is very important for me to get fixed, otherwise my AngularJS apps break.

from grunt-include-source.

manuelnaranjo avatar manuelnaranjo commented on July 21, 2024

Sorry my last comment was not related to this issue, I'm experiencing the ordering issue as well, will create a new issue for it.

from grunt-include-source.

jwvdiermen avatar jwvdiermen commented on July 21, 2024

Well, the point of the <!-- /include --> tag is so you can rewrite the same html file without needing an separate output file. It doesn't remember anything inside of the tag, meaning it works like it's designed to in your case.

from grunt-include-source.

manuelnaranjo avatar manuelnaranjo commented on July 21, 2024

Indeed, ordering needs to be handled outside the plugin scope.

from grunt-include-source.

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.