Comments (6)
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.
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.
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.
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.
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.
Indeed, ordering needs to be handled outside the plugin scope.
from grunt-include-source.
Related Issues (20)
- Same source and destination file. HOT 3
- type="text/javascript" is redundant HOT 2
- Grunt's <%= %> feature is not supported HOT 2
- Line break issue in Windows with wiredep HOT 4
- Ordering doesn't work HOT 2
- why not include sources??? HOT 1
- Include sources in the same file HOT 2
- Includes duplicate JS files HOT 7
- Please support TypeScript template HOT 1
- How to include source maps (.map extension not supported)? HOT 1
- Include sources in js files HOT 3
- [Question] Targets, could be a folder and not a file HOT 1
- Overwrite not working
- Exclude paths HOT 1
- Warning: Symbol is not defined Use --force to continue. HOT 2
- Fails to include all files in <%= myFileList.js %> HOT 1
- TO DELETE
- script tag not included in html
- Adding support for JSP files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-include-source.