Skip to content

Commit

Permalink
Fix 404 error on slide pages (#544)
Browse files Browse the repository at this point in the history
The cause is that `output.clean: true` is set in `webpack.config.js`:
https://github.com/ybiquitous/homepage/blob/cb934e07770394fd9fd25ca50e99d2335f5f7e93/webpack.config.js#L30

This bug fix changes `npm run build` from parallel to series.
  • Loading branch information
ybiquitous committed Jul 7, 2021
1 parent cb934e0 commit f0e5eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"scripts": {
"start": "webpack serve --mode=development --node-env=development",
"build:webpack": "webpack build --mode=production",
"build:slide": "rm -rf dist/slides && mkdir -p dist/slides && cp -R src/slides-build/* dist/slides/",
"build": "npm-run-all --print-label --parallel build:*",
"build:slides": "rm -rf dist/slides && mkdir -p dist/slides && cp -R src/slides-build/* dist/slides/",
"build": "npm-run-all --print-label build:webpack build:slides",
"postbuild": "cp -v _redirects dist/",
"static": "npm run build && npx http-server ./dist",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
Expand Down

0 comments on commit f0e5eb3

Please sign in to comment.