Skip to content

Commit 6cb7530

Browse files
committed
snapshot
1 parent f36ac63 commit 6cb7530

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

jscomp/bsb/bsb_templates.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,6 @@ let root = OCamlRes.Res.([
921921
\n\
922922
**How come we don't need any bundler during development**? We highly encourage you to open up `index.html` to check for yourself!\n\
923923
\n\
924-
If you start handling routes via `ReasonReactRouter` change the server script in package.json to `moduleserve ./ --port 8000 --spa` to make sure your routes don't result in a 404 not found error. With the added `--spa` flag your routes will return the index.html on page load and you can handle them client-side.\n\
925-
\n\
926924
# Features Used\n\
927925
\n\
928926
| | Blinking Greeting | Reducer from ReactJS Docs | Fetch Dog Pictures | Reason Using JS Using Reason |\n\
@@ -954,6 +952,12 @@ let root = OCamlRes.Res.([
954952
./node_modules/.bin/webpack\n\
955953
open indexProduction.html\n\
956954
```\n\
955+
\n\
956+
# Handle Routing Yourself\n\
957+
\n\
958+
To serve the files, this template uses a minimal dependency called `moduleserve`. A URL such as `localhost:8000/scores/john` resolves to the file `scores/john.html`. If you'd like to override this and handle URL resolution yourself, change the `server` command in `package.json` from `moduleserve ./ --port 8000` to `moduleserve ./ --port 8000 --spa` (for \"single page application\"). This will make `moduleserve` serve the default `index.html` for any URL. Since `index.html` loads `Index.bs.js`, you can grab hold of the URL in the corresponding `Index.re` and do whatever you want.\n\
959+
\n\
960+
By the way, ReasonReact comes with a small [router](https://reasonml.github.io/reason-react/docs/en/router) you might be interested in.\n\
957961
") ;
958962
File ("indexProduction.html",
959963
"<!DOCTYPE html>\n\

lib/4.06.1/bsb.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15071,8 +15071,6 @@ let root = OCamlRes.Res.([
1507115071
\n\
1507215072
**How come we don't need any bundler during development**? We highly encourage you to open up `index.html` to check for yourself!\n\
1507315073
\n\
15074-
If you start handling routes via `ReasonReactRouter` change the server script in package.json to `moduleserve ./ --port 8000 --spa` to make sure your routes don't result in a 404 not found error. With the added `--spa` flag your routes will return the index.html on page load and you can handle them client-side.\n\
15075-
\n\
1507615074
# Features Used\n\
1507715075
\n\
1507815076
| | Blinking Greeting | Reducer from ReactJS Docs | Fetch Dog Pictures | Reason Using JS Using Reason |\n\
@@ -15104,6 +15102,12 @@ let root = OCamlRes.Res.([
1510415102
./node_modules/.bin/webpack\n\
1510515103
open indexProduction.html\n\
1510615104
```\n\
15105+
\n\
15106+
# Handle Routing Yourself\n\
15107+
\n\
15108+
To serve the files, this template uses a minimal dependency called `moduleserve`. A URL such as `localhost:8000/scores/john` resolves to the file `scores/john.html`. If you'd like to override this and handle URL resolution yourself, change the `server` command in `package.json` from `moduleserve ./ --port 8000` to `moduleserve ./ --port 8000 --spa` (for \"single page application\"). This will make `moduleserve` serve the default `index.html` for any URL. Since `index.html` loads `Index.bs.js`, you can grab hold of the URL in the corresponding `Index.re` and do whatever you want.\n\
15109+
\n\
15110+
By the way, ReasonReact comes with a small [router](https://reasonml.github.io/reason-react/docs/en/router) you might be interested in.\n\
1510715111
") ;
1510815112
File ("indexProduction.html",
1510915113
"<!DOCTYPE html>\n\

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15170,8 +15170,6 @@ let root = OCamlRes.Res.([
1517015170
\n\
1517115171
**How come we don't need any bundler during development**? We highly encourage you to open up `index.html` to check for yourself!\n\
1517215172
\n\
15173-
If you start handling routes via `ReasonReactRouter` change the server script in package.json to `moduleserve ./ --port 8000 --spa` to make sure your routes don't result in a 404 not found error. With the added `--spa` flag your routes will return the index.html on page load and you can handle them client-side.\n\
15174-
\n\
1517515173
# Features Used\n\
1517615174
\n\
1517715175
| | Blinking Greeting | Reducer from ReactJS Docs | Fetch Dog Pictures | Reason Using JS Using Reason |\n\
@@ -15203,6 +15201,12 @@ let root = OCamlRes.Res.([
1520315201
./node_modules/.bin/webpack\n\
1520415202
open indexProduction.html\n\
1520515203
```\n\
15204+
\n\
15205+
# Handle Routing Yourself\n\
15206+
\n\
15207+
To serve the files, this template uses a minimal dependency called `moduleserve`. A URL such as `localhost:8000/scores/john` resolves to the file `scores/john.html`. If you'd like to override this and handle URL resolution yourself, change the `server` command in `package.json` from `moduleserve ./ --port 8000` to `moduleserve ./ --port 8000 --spa` (for \"single page application\"). This will make `moduleserve` serve the default `index.html` for any URL. Since `index.html` loads `Index.bs.js`, you can grab hold of the URL in the corresponding `Index.re` and do whatever you want.\n\
15208+
\n\
15209+
By the way, ReasonReact comes with a small [router](https://reasonml.github.io/reason-react/docs/en/router) you might be interested in.\n\
1520615210
") ;
1520715211
File ("indexProduction.html",
1520815212
"<!DOCTYPE html>\n\

0 commit comments

Comments
 (0)