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

Use /static paths for assets #278

Merged
merged 2 commits into from
Jul 29, 2016
Merged

Use /static paths for assets #278

merged 2 commits into from
Jul 29, 2016

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jul 29, 2016

This changes JS/CSS/image paths from flat to being in specific directories:

screen shot 2016-07-29 at 16 33 39

- `static/js` for JS files - `static/css` for styles - `static/media` for everything else

This works both for development and production.
There are a few benefits:

I tweaked the post-build output as well so long paths don’t obscure the sizes:

screen shot 2016-07-29 at 16 43 27

This partly addresses #246 (except the socket part).

@gaearon gaearon added this to the 0.3.0 milestone Jul 29, 2016
@ghost ghost added the CLA Signed label Jul 29, 2016
@gaearon gaearon merged commit f05cba5 into master Jul 29, 2016
@gaearon gaearon deleted the static-paths branch July 29, 2016 16:09
@gaearon gaearon modified the milestones: 0.2.1, 0.3.0 Aug 1, 2016
@gaearon gaearon mentioned this pull request Aug 1, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants