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

Using almond removes data attributes? #204

Open
prashaantt opened this issue Dec 9, 2014 · 2 comments
Open

Using almond removes data attributes? #204

prashaantt opened this issue Dec 9, 2014 · 2 comments

Comments

@prashaantt
Copy link

I'm trying to combine requirejs-rails with Turbolinks, which works well in development when I do it like this:

<%= requirejs_include_tag "application" do { "turbolinks-track" => true } end %>

which gives me

<script data-main="application" data-turbolinks-track="true" src="/assets/require.js"></script>

But in production (using almond), the final script declaration no longer has the data-turbolinks-track attribute in the script import:

<script src="/assets/application-a272c25b4c2f04d345d7ef9c49b540c4.js"></script>

Is there something I can do to retain that data attribute?

@carsomyr
Copy link
Collaborator

carsomyr commented Dec 9, 2014

@prashaantt Production should work too. If not, this is a bug.

@carsomyr
Copy link
Collaborator

@prashaantt Oh, you meant almond. Yeah, that's a known problem with #159.

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

No branches or pull requests

2 participants