From f0e5eb309b778016d957219077215e8eade6e6e1 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Wed, 7 Jul 2021 09:15:00 +0900 Subject: [PATCH] Fix 404 error on slide pages (#544) 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. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index db9f751a..91f825b6 100644 --- a/package.json +++ b/package.json @@ -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",