-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Move coffescript sources and mockups out of static #159
Comments
There is. That way the code can be debugged with the web-browser debugging tools and source maps. The generated js file would be pretty hard to debug otherwise. |
Ok, I haven't tried to use the tools to edit the js in Spirit. However, it's still strange to see these files being served: http://community.spirit-project.com/static/spirit/stylesheets/mockups/login.html And |
Try |
Couldn't you write a rule in urls.py that serves those files from a different folder only when in debug? |
What about changing the gulp path? //gulpfile.js
var pathCoffee = jsPath + 'src/';
var pathJs = jsPath + 'js/';
... |
I'll look into it. My only concern is that may be confusing, but moving them to
Yeah, that and adding a new url pattern as @alesdotio suggested may work. |
There's no reason for the source files and mockups to be in the static directory. These are all collected by the
collectstatic
command and served to the public.The text was updated successfully, but these errors were encountered: