Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in merging java-script source files in a particular order #27

Closed
blutorange opened this issue Oct 14, 2018 · 4 comments
Closed

Issue in merging java-script source files in a particular order #27

blutorange opened this issue Oct 14, 2018 · 4 comments

Comments

@blutorange
Copy link
Owner

Issue by kannan08
Friday May 19, 2017 at 07:16 GMT
Originally opened as samaxes#146


<jsSourceIncludes>
                                    <jsSourceInclude>UIApp.js</jsSourceInclude>
                                    <jsSourceInclude>UIApp.run.js</jsSourceInclude>
                                    <jsSourceInclude>UI-i18n.config.js</jsSourceInclude>
                                    <jsSourceInclude>UI-router-helper.provider.js</jsSourceInclude>
 <jsSourceInclude>aa/nnn/r.js</jsSourceInclude>
 <jsSourceInclude>aa/nnn/a.js</jsSourceInclude>
<jsSourceIncludes>
We need it should merge what order we mention in the <jsSourceInclude> but it always short by fileName


@blutorange
Copy link
Owner Author

Comment by twothe
Wednesday Jan 17, 2018 at 15:03 GMT


The fact that this plugin merges files in the order of file-name makes it completely unusable in modern web environment. If JS file A needs to access JS library B, it won't work, cause B comes after A.

This plugin absolutely needs a way to define the order of files.

@blutorange
Copy link
Owner Author

Comment by scarballo
Tuesday Jun 19, 2018 at 10:11 GMT


I think that order JS files by file name suppose a big problem when merge them. The plugin should keep the original order to make it usable as @kannan08 said. Is this possible?

@blutorange
Copy link
Owner Author

Comment by blutorange
Saturday Oct 13, 2018 at 13:52 GMT


You should be able to use

<jsSourceFiles>
	<jsSourceFile>zzz.js</jsSourceFile>
	<jsSourceFile>aa.js</jsSourceFile>
</jsSourceFiles>

instead of jsSourceInclude. This should preserve the order.

@blutorange
Copy link
Owner Author

See #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant