From c49836bec78eaebcbe503acd3c8118cd24f30670 Mon Sep 17 00:00:00 2001 From: Hippo Date: Mon, 26 Jul 2021 23:09:40 +0530 Subject: [PATCH] Force-render CSS on basePath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a very hacky way of doing it: a base path of /seance will lead to rendering in, public/seance/seance/css/styles.css but it seems to be the only way out for now 🙁 Hopefully in future we'll come up with a more elegant solution. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index d4ae3eb..9dc3329 100644 --- a/server.js +++ b/server.js @@ -41,7 +41,7 @@ let options = { ], }, extractCSS: true, - cssOutputPath: 'css/styles.css', + cssOutputPath: (config.basePath || '') + '/css/styles.css', publicPath: 'public' + (config.basePath || ''), compilerConfig: { // custom webpack config