You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
What is the proper way to handle this url? Should I create task for removing '{%static', '%}' and save result in temporary file?
UPD: I've seen source code sufficient to change regex and output string and it works for me. There are similar problem with htmlmin and bower-install. You could add option to this tasks for my case but I don't know how often needed this usecase. If I chose way with creating temporary file what would I do with bower-install?
The text was updated successfully, but these errors were encountered:
I was able to come up with a workaround that doesn't require modifying usemin source (just changing your gruntfile). Doesn't use src="{% static "path/to/file.js" %}" but instead uses a property on the view context STATIC_URL, which you then use like src="{{STATIC_URL}}path/to/file.js". Full solution here: http://stackoverflow.com/a/21224396/494954
I'm newbie in grunt. I'm use Django to serve static files hence my template looks as:
What is the proper way to handle this url? Should I create task for removing '{%static', '%}' and save result in temporary file?
UPD: I've seen source code sufficient to change regex and output string and it works for me. There are similar problem with htmlmin and bower-install. You could add option to this tasks for my case but I don't know how often needed this usecase. If I chose way with creating temporary file what would I do with bower-install?
The text was updated successfully, but these errors were encountered: