Skip to content

Commit

Permalink
Use netlify.toml for build/publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo authored and Relequestual committed Jun 9, 2019
1 parent e600d69 commit d36fc4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build]
publish = "dist/"
command = "yarn run build"

# The following redirect is intended for use with most SPAs that handle
# routing internally.
[[redirects]]
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"postbuild": "cp ./netlify.toml ./docs/netlify.toml"
"lint": "vue-cli-service lint"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.17",
Expand Down
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
publicPath: './',
outputDir: 'docs',
publicPath: './',
outputDir: 'dist'
}

0 comments on commit d36fc4e

Please sign in to comment.