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

Support livereload of css with Figwheel #997

Merged
merged 6 commits into from Mar 13, 2019

Conversation

Projects
None yet
2 participants
@Macroz
Copy link
Collaborator

Macroz commented Mar 12, 2019

Support (again) livereload of CSS with Figwheel.

While we normally generate the screen.css on the fly and memoize it, in development it's useful to render a file target/resources/public/css/screen.css that Figwheel can serve and update. We use mount here to render the initial file and re-render each time the styles are changed and the style file reloaded. Figwheel picks up the change and delivers it to the browser.

We also render all the configured languages into screen-fi.css etc. files so this works for localized CSS files as well.

Show resolved Hide resolved .gitignore Outdated
Show resolved Hide resolved src/clj/rems/css/styles.clj Outdated
Show resolved Hide resolved src/clj/rems/css/styles.clj

@Macroz Macroz changed the title feat: support livereload of css with Figwheel Support livereload of css with Figwheel Mar 12, 2019

@Macroz Macroz force-pushed the figwheel-css-support branch from 8532260 to 9407c84 Mar 12, 2019

Show resolved Hide resolved src/clj/rems/home.clj Outdated
Show resolved Hide resolved src/clj/rems/home.clj Outdated

@Macroz Macroz force-pushed the figwheel-css-support branch from 9407c84 to df14e7f Mar 12, 2019

@Macroz Macroz requested a review from opqdonut Mar 12, 2019

@Macroz Macroz merged commit 29cca2c into master Mar 13, 2019

6 checks passed

ci/circleci: build Your tests passed on CircleCI!
Details
ci/circleci: doo Your tests passed on CircleCI!
Details
ci/circleci: ok Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
ci/circleci: war Your tests passed on CircleCI!
Details
ci/circleci: without-db Your tests passed on CircleCI!
Details

@Macroz Macroz deleted the figwheel-css-support branch Mar 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.