https://github.com/codehz/sexp
Just A Experiment
https://github.com/codehz/sexp
Last synced: 4 days ago
JSON representation
Just A Experiment
- Host: GitHub
- URL: https://github.com/codehz/sexp
- Owner: codehz
- Created: 2018-05-05T02:57:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T11:07:30.000Z (about 3 years ago)
- Last Synced: 2025-03-11T06:25:55.737Z (about 1 year ago)
- Language: Reason
- Size: 1.23 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sexp
## Run Project
```sh
npm install
npm start
# in another tab
npm run webpack
```
After you see the webpack compilation succeed (the `npm run webpack` step), open up `src/index.html` (**no server needed!**). Then modify whichever `.re` file in `src` and refresh the page to see the changes.
**For more elaborate ReasonReact examples**, please see https://github.com/reasonml-community/reason-react-example
## Build for Production
```sh
npm run build
npm run webpack:production
```
This will replace the development artifact `build/Index.js` for an optimized version.
**To enable dead code elimination**, change `bsconfig.json`'s `package-specs` `module` from `"commonjs"` to `"es6"`. Then re-run the above 2 commands. This will allow Webpack to remove unused code.