Add netlify.toml config file.

This commit is contained in:
Dillon Kearns 2019-08-08 19:13:13 -07:00
parent 6230e101d4
commit 1efa1df106
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@
"start": "concurrently \"npm:watch\" \"parcel src/index.html\"",
"start:prod": "npm run build && http-server ./dist -a localhost -p 3000 -c-1",
"build": "rm -rf dist && parcel build src/index.html",
"build:manifest": "parcel build src/js/generate-manifest.ts --out-file generate-manifest.js --target node --bundle-node-modules --no-source-maps && node ./dist/generate-manifest.js",
"test": "elm-test",
"autotest": "elm-test --watch"
},

4
netlify.toml Normal file
View File

@ -0,0 +1,4 @@
[build]
base = "examples/docs/"
publish = "examples/docs/dist/"
command = "npm run build && npm run build:manifest"