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

Script File Order? #12

Open
Miroku87 opened this issue Aug 29, 2014 · 0 comments
Open

Script File Order? #12

Miroku87 opened this issue Aug 29, 2014 · 0 comments

Comments

@Miroku87
Copy link

I've made a little test to see if useref would have kept the order of the script file import in the HTML while concatenating them but unfortunately this:

<!-- build:js ./main-<%= grunt.file.readJSON('package.json').version %>.js -->
<script src="./file2.js"></script>
<script src="./file1.js"></script>
<!-- endbuild -->

resulted in

var file1 = "file1stuff";
.
.
.
var file2 = "file2stuff";

As you well know there are times when the import order of javascript file is very important due to dependencies.
It would be good if useref took in account the order in which the file are imported in the HTML before concatenating them.

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