Skip to content

Commit 9a55c8e

Browse files
author
Ari-Matti Nivasalo
committed
Build assets into assets folder and try to bypass heroku routing for app
1 parent 72c2878 commit 9a55c8e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"@babel/preset-react": "^7.0.0",
4747
"babel-core": "^7.0.0-bridge.0",
4848
"babel-plugin-styled-components": "^1.7.1",
49-
"parcel-bundler": "^1.12.3"
49+
"parcel-bundler": "^1.12.3",
50+
"parcel-plugin-assets-dist": "^1.0.0"
5051
},
5152
"jest": {
5253
"verbose": true

static.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"root": "dist/",
3+
"routes": {
4+
"/assets/*": "/assets/",
5+
"/**": "index.html"
6+
},
37
"/**": "index.html"
48
}

0 commit comments

Comments
 (0)