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

Bring sass under webpack, move package.json to project root. #20

Merged
merged 4 commits into from
Nov 9, 2015

Conversation

clloyd
Copy link
Contributor

@clloyd clloyd commented Nov 6, 2015

Sass is now compiled by webpack, giving us hot-reloading in client-dev mode.

This also moves the package.json (and node_modules) out of /public and into the root, this reduces the time taken to refresh a page after an asset file change from around 5 seconds to 1 second, and builds from around 11 mins to 5 mins.

!!!

After merge you'll need to delete the node_modules folder inside your public directory and re-run ./scripts/setup.sh

@jamespamplin
Copy link

Fantastic! great stuff 👍

@clloyd
Copy link
Contributor Author

clloyd commented Nov 9, 2015

@steppenwells I'll merge this, but as noted will allow you to delete node modules in your public folder (and greatly speed up sbt startup speeds!)

clloyd pushed a commit that referenced this pull request Nov 9, 2015
Bring sass under webpack, move package.json to project root.
@clloyd clloyd merged commit 1da8432 into master Nov 9, 2015
@clloyd clloyd deleted the cl-webpack-sass branch November 9, 2015 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants