Skip to content

Commit af7900e

Browse files
committed
Add build script to React Router (Parcel) example.
1 parent bc26890 commit af7900e

File tree

2 files changed

+2459
-78
lines changed

2 files changed

+2459
-78
lines changed

examples/with-react-router/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@
66
"scripts": {
77
"postinstall": "relative-deps",
88
"prestart": "relative-deps",
9-
"start": "parcel index.html"
9+
"prebuild": "relative-deps",
10+
"start": "parcel index.html",
11+
"build": "parcel build index.html"
1012
},
1113
"dependencies": {
12-
"@babel/preset-react": "^7.0.0",
13-
"parcel-bundler": "^1.12.3",
1414
"react": "^16.8.6",
1515
"react-async": "^7.0.5",
1616
"react-async-devtools": "^1.0.3",
1717
"react-dom": "^16.8.6",
1818
"react-router-dom": "^5.0.0"
1919
},
2020
"devDependencies": {
21+
"@babel/core": "^7.5.5",
22+
"@babel/preset-react": "^7.0.0",
23+
"parcel-bundler": "^1.12.3",
2124
"relative-deps": "^0.1.2"
2225
},
2326
"relativeDependencies": {

0 commit comments

Comments
 (0)