https://github.com/tobiastimm/using-metro-for-web
A boilerplate to use 🚆 for web bundling!
https://github.com/tobiastimm/using-metro-for-web
bundler metro react web
Last synced: 6 months ago
JSON representation
A boilerplate to use 🚆 for web bundling!
- Host: GitHub
- URL: https://github.com/tobiastimm/using-metro-for-web
- Owner: tobiastimm
- License: mit
- Created: 2019-03-29T21:24:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T06:06:22.000Z (over 2 years ago)
- Last Synced: 2025-03-26T07:21:49.813Z (7 months ago)
- Topics: bundler, metro, react, web
- Language: JavaScript
- Size: 1.6 MB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# using-metro-for-web
> A boilerplate to use 🚇 for web bundling!
This boilerplate shows how to use [`metro`](https://github.com/facebook/metro) as a web bundler.
I'm using `react` in this boilerplate, because the main use-case of metro is bundling for `react-native`. It should work with other frameworks, but would need a bit of work.
Styling is restricted to `css-in-js` only atm, because there are no transformers for css, scss, ... yet.
I`ve created a hackish [metro-css-transformer](https://github.com/tobiastimm/metro-css-transformer) for anyone interested.
Most of this is still work in progress, but I want to explore the possibilities and differences, advantages, disadvantages of bundling with `metro`.
Feel free to help or share your ideas for continuously improvement!
## Getting Started
Clone this repo
```bash
git clone https://github.com/tobiastimm/using-metro-for-web.git
```Install dependencies
```bash
yarn install
```Run the server
```bash
yarn start
```## ToDo
- [x] HMR (really really basic)
- [ ] Support for HTML, CSS, SCSS, LESS, Stylus, ...## License
[MIT](./LICENSE)