https://github.com/spacejack/mithril-webpack-ts
Mithril, Webpack, Typescript, SASS Starter Projects
https://github.com/spacejack/mithril-webpack-ts
Last synced: 3 months ago
JSON representation
Mithril, Webpack, Typescript, SASS Starter Projects
- Host: GitHub
- URL: https://github.com/spacejack/mithril-webpack-ts
- Owner: spacejack
- Created: 2017-05-07T16:44:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T21:08:06.000Z (about 8 years ago)
- Last Synced: 2024-08-01T22:41:43.654Z (11 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-mithril - Mithril/Typescript/SASS/PostCSS/Webpack2
README
# Mithril / Webpack / Typescript / SASS Example
This repo has 3 branches. Use `git checkout [branchname]` to use one of the following:
* **master** Mithril, Webpack, Typescript, SASS
* **postcss** Mithril, Webpack, Typescript, PostCSS
* **sass-postcss** Mithril, Webpack, Typescript, SASS & PostCSSNote that each branch has different dependencies, so you may need to re-run `npm install` when switching branches.
## Installation:
npm install
### Recommended:
* **editorconfig** VSCode extension
* **eslint** VSCode extension
* **tslint** VSCode extension
* **stylelint** VSCode extension## Start:
npm start
Then go to http://localhost:3000/ in your browser.
## Build minified
npm run build
Outputs to the `public` directory.
## References
* [Beginner's Guide to Webpack 2.0](https://medium.com/@wesharehoodies/simple-beginner-guide-for-webpack-2-0-from-scratch-part-v-495dba627718)
* [Webpack Hot-reload CSS Modules](https://60devs.com/webpack-hot-reload-css-modules.html)