Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlov-vo/snowpack-plugin-rescript
https://github.com/orlov-vo/snowpack-plugin-rescript
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orlov-vo/snowpack-plugin-rescript
- Owner: orlov-vo
- License: mit
- Created: 2020-12-27T15:11:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T13:06:57.000Z (almost 4 years ago)
- Last Synced: 2023-12-24T20:15:45.456Z (12 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snowpack-plugin-rescript
Snowpack plugin for running building whole project through `bsb-platform`
## Installation
```bash
npm install snowpack-plugin-rescript -D
```After this you should add plugin to `snowpack.config.js`:
```json
{
"plugins": ["snowpack-plugin-rescript"]
}
```Also you must have `bsconfig.json` file with `in-source` option.
Why? [Because ReScript team recommend it](https://rescript-lang.org/docs/manual/latest/interop-with-js-build-systems)
```json
{
"package-specs": {
"module": "es6-global",
"in-source": true
},
"suffix": ".bs.js"
}
```## License
MIT License