Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jihchi/plugin-rescript
A Snowpack plugin lets you integrate ReScript build system/compiler with Snowpack
https://github.com/jihchi/plugin-rescript
rescript rescript-lang snowpack-plugin
Last synced: 18 days ago
JSON representation
A Snowpack plugin lets you integrate ReScript build system/compiler with Snowpack
- Host: GitHub
- URL: https://github.com/jihchi/plugin-rescript
- Owner: jihchi
- Created: 2021-04-17T14:25:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-29T11:13:49.000Z (over 3 years ago)
- Last Synced: 2025-01-01T23:50:54.617Z (24 days ago)
- Topics: rescript, rescript-lang, snowpack-plugin
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @jihchi/plugin-rescript
[![npm package][npm-package-shield]][npm-package-url]
[![bundlephobia size][bundlephobia-size-shield]][bundlephobia-size-url]
![npm download per month][npm-download-shield]
![npm license][npm-licence-shield]This plugin adds ReScript to your Snowpack project.
### Install
```
npm install --save-dev rescript
npm install --save-dev @jihchi/plugin-rescript
```Then add `@jihchi/plugin-rescript` to `snowpack.config.js`:
or to `snowpack.config.js`:
```js
module.exports = {
plugins: [
[
'@jihchi/plugin-rescript',
{
/* see "Plugin Options" below */
},
],
],
};
```Once added to the configuration, `@jihchi/plugin-rescript` will run automatically on `snowpack dev` and `snowpack build`.
### Plugin Options
| Name | Type | Description |
| :------- | :------------------------ | :----------------------------------------------------------- |
| `output` | `"stream" or "dashboard"` | (optional) Set how the output should be recorded during dev. |[npm-package-shield]: https://img.shields.io/npm/v/@jihchi/plugin-rescript
[npm-package-url]: https://www.npmjs.com/package/@jihchi/plugin-rescript
[npm-download-shield]: https://img.shields.io/npm/dm/@jihchi/plugin-rescript
[npm-licence-shield]: https://img.shields.io/npm/l/@jihchi/plugin-rescript
[bundlephobia-size-shield]: https://img.shields.io/bundlephobia/min/@jihchi/plugin-rescript
[bundlephobia-size-url]: https://bundlephobia.com/package/@jihchi/plugin-rescript