From 620c12a5cf610fa95210e3658b0a6b130260c6d8 Mon Sep 17 00:00:00 2001 From: rrigato Date: Sun, 17 Sep 2023 12:28:54 -0500 Subject: [PATCH] correct directory --- .github/workflows/homepage_update.yml | 2 ++ static/webpack.local.js | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/homepage_update.yml b/.github/workflows/homepage_update.yml index 77d3ff6..b8f9fa2 100644 --- a/.github/workflows/homepage_update.yml +++ b/.github/workflows/homepage_update.yml @@ -40,6 +40,8 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 + - run: cd static + - run: npm run test - run: npm run build diff --git a/static/webpack.local.js b/static/webpack.local.js index e0864d6..b1b7f5c 100644 --- a/static/webpack.local.js +++ b/static/webpack.local.js @@ -3,7 +3,14 @@ const baseConfig = require('./webpack.config.js'); module.exports = merge( baseConfig, + { + devServer: { + static: { + directory: path.join(__dirname, 'dist'), + }, + open: true + }, mode: 'development' } );