f1bd921d03
CSS modules make it easier to scope classes. Your style sheets can be modular and reusable. To learn more about CSS modules, see[0]. I would like to start using single file components where all of the code required for a specific components is provided inside of a single Imba file. Using CSS modules is just a step towards that. Related-to: https://github.com/imba/imba/issues/220 [0]: https://github.com/css-modules/css-modules |
||
---|---|---|
dist | ||
src | ||
.editorconfig | ||
.gitignore | ||
README.md | ||
package.json | ||
webpack.config.js | ||
yarn.lock |
README.md
Hello World Imba
Tiny template for testing out Imba using CSS modules. Click Use this template on GitHub to create a new repository with this template.
Getting started
git clone https://github.com/imba/hello-world-imba
cd hello-world-imba
yarn # npm install
You can run the app in two ways, either served via the webpack-dev-server or Express.
Webpack
# start webpack-dev-server and compiler
yarn run dev # npm run dev
Server side
./node_modules/.bin/imba src/server.imba