Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Replace RequireJS with Almond during build [fixes #296] #372

Merged
merged 1 commit into from
Nov 22, 2015

Conversation

marian-r
Copy link
Contributor

Replacement for #299 & #300.

Generated output in some configurations can be seen here: https://github.com/marian-r/generator-backbone-examples.

@@ -107,5 +107,8 @@ <h3 class="text-muted"><%= appName %></h3>
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<% if (includeRequireJS) { -%>
<script data-main="scripts/main" src="bower_components/requirejs/require.js"></script>
<% } -%>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple and clever solution to bypass the usemin block generated by htmlWiring.appendScript 👍 nice job!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :) I saw that append was producing incorrect indentation, so I fixed it with this simple solution.

@ruyadorno
Copy link
Contributor

👍 LGTM

thank you very much @marian-r for the awesome work putting this all together

happy to see the requirejs build finally working again 🎊

ruyadorno added a commit that referenced this pull request Nov 22, 2015
Replace RequireJS with Almond during build [fixes #296]
@ruyadorno ruyadorno merged commit d2d63d8 into yeoman:master Nov 22, 2015
ruyadorno added a commit to ruyadorno/generator-backbone that referenced this pull request Nov 22, 2015
@marian-r
Copy link
Contributor Author

Thanks for your patience 👍

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

Successfully merging this pull request may close these issues.

2 participants