Skip to content

Commit

Permalink
Added a _redirects file for netlify to properly load subpages if a us…
Browse files Browse the repository at this point in the history
…er refreshes. Build also updated to copy file.
  • Loading branch information
misterGF committed Apr 12, 2017
1 parent f23e203 commit 033a5a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* / 200
1 change: 1 addition & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirect
rm('-rf', assetsPath)
mkdir('-p', assetsPath)
cp('-R', 'static/*', assetsPath)
cp('_redirects', config.build.assetsRoot)

webpack(webpackConfig, function (err, stats) {
spinner.stop()
Expand Down

0 comments on commit 033a5a0

Please sign in to comment.