From 60e47b9cb1127042c5567c2632936295fd210be5 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 18:31:23 +0100 Subject: fix: Move build output Move from `www/dist` to `public`. This should solve gitlab pages returning 404. --- .gitignore | 1 + .gitlab-ci.yml | 2 +- www/webpack.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 01c9c21..8001a44 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ target/ bin/ pkg/ .idea/ +public/ npm_modules/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1aeb1fa..6655399 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ pages: - make artifacts: paths: - - www/dist + - public only: refs: - master diff --git a/www/webpack.config.js b/www/webpack.config.js index 6d82e1f..98cfec8 100644 --- a/www/webpack.config.js +++ b/www/webpack.config.js @@ -4,7 +4,7 @@ const path = require('path'); module.exports = { entry: "./bootstrap.js", output: { - path: path.resolve(__dirname, "dist"), + path: path.resolve(__dirname, "../public"), filename: "bootstrap.js", }, mode: "development", -- cgit v1.2.3