Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Css modules #1

Merged
merged 18 commits into from
Jul 1, 2016
Merged

Css modules #1

merged 18 commits into from
Jul 1, 2016

Conversation

iam4x
Copy link
Owner

@iam4x iam4x commented Jun 30, 2016

Add css-modules support via webpack css-loader and usage of isomorphic-style-loader for server side rendering with only critical styles.

It works in dev mode for now this way:

  1. start webpack-dev-server to compile client code and starting browser sync server
  2. compile code for server side rendering and start koa render server

So now we have two webpack instances, a webpack-dev-server watching for changes to hot reload client side code. And another one that we programatically spawn when koa render server restart is requested. (On typing rs into terminal or when code changes into ./server/** directory) -> Browser get automatically reloaded after a render server restart.

I have included also a minimal postcss stack to work a la SCSS 🌟

TODO

  • Add css-modules support
  • Find a way to include externals css framework like twitter bootstrap
  • Add styles example on todos component

@iam4x iam4x merged commit 371fcd9 into master Jul 1, 2016
iam4x added a commit that referenced this pull request Jul 1, 2016
@iam4x iam4x deleted the css-modules branch July 1, 2016 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant