You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\ \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n\
15266
+
\ },\n\
15267
+
\ \"keywords\": [\n\
15268
+
\ \"BuckleScript\",\n\
15269
+
\ \"ReasonReact\",\n\
15270
+
\ \"reason-react\"\n\
15271
+
\ ],\n\
15272
+
\ \"author\": \"\",\n\
15273
+
\ \"license\": \"MIT\",\n\
15274
+
\ \"dependencies\": {\n\
15275
+
\ \"react\": \"^16.8.1\",\n\
15276
+
\ \"react-dom\": \"^16.8.1\",\n\
15277
+
\ \"reason-react\": \">=0.7.0\"\n\
15278
+
\ },\n\
15279
+
\ \"devDependencies\": {\n\
15280
+
\ \"bs-platform\": \"^${bsb:bs-version}\",\n\
15281
+
\ \"webpack\": \"^4.0.1\",\n\
15282
+
\ \"webpack-cli\": \"^3.1.1\",\n\
15283
+
\ \"webpack-dev-server\": \"^3.1.8\",\n\
15284
+
\ \"html-webpack-plugin\": \"^3.2.0\",\n\
15285
+
\ \"style-loader\": \"^1.0.0\",\n\
15286
+
\ \"css-loader\": \"^3.2.0\"\n\
15287
+
\ }\n\
15288
+
}\n\
15289
+
") ;
15290
+
File (".gitignore",
15291
+
".DS_Store\n\
15292
+
.merlin\n\
15293
+
.bsb.lock\n\
15294
+
npm-debug.log\n\
15295
+
/lib/bs/\n\
15296
+
/node_modules/\n\
15297
+
*.bs.js\n\
15298
+
") ;
15299
+
File ("README.md",
15300
+
"# Reason react starter\n\
15301
+
\n\
15302
+
## Run Project\n\
15303
+
\n\
15304
+
```sh\n\
15305
+
npm install\n\
15306
+
npm start\n\
15307
+
# in another tab\n\
15308
+
npm run server\n\
15309
+
```\n\
15310
+
\n\
15311
+
View the app in the browser at http://localhost:8000. Running in this environment provides hot reloading and support for routing; just edit and save the file and the browser will automatically refresh.\n\
15312
+
\n\
15313
+
To use a port other than 8000 set the `PORT` environment variable (`PORT=8080 npm run server`).\n\
15314
+
\n\
15315
+
## Build for Production\n\
15316
+
\n\
15317
+
```sh\n\
15318
+
npm run clean\n\
15319
+
npm run build\n\
15320
+
npm run webpack:production\n\
15321
+
```\n\
15322
+
\n\
15323
+
This will replace the development artifact `build/Index.js` for an optimized version as well as copy `src/index.html` into `build/`. You can then deploy the contents of the `build` directory (`index.html` and `Index.js`).\n\
15324
+
\n\
15325
+
**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.\n\
0 commit comments