From ec6db6b5162da3b4eafe4087f007e1f1ff99689f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 9 Aug 2024 14:05:24 -0300 Subject: [PATCH] Fix CSS build artifacts at wrong directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now it uses the root build directory instead of public/build. Signed-off-by: MaurĂ­cio Meneghini Fauth --- .gitignore | 1 - webpack.config.cjs | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4c69038883..be28e8504c 100644 --- a/.gitignore +++ b/.gitignore @@ -61,7 +61,6 @@ cache.properties phpstan.neon # Infection infection.json5 -/public/build/ /js/ /setup/ /themes/ diff --git a/webpack.config.cjs b/webpack.config.cjs index de9b1f1a31..0e0b5bc35f 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -186,15 +186,15 @@ module.exports = [ mode: 'none', devtool: 'source-map', entry: { - 'themes/bootstrap/css/theme': publicPath + '/themes/bootstrap/scss/theme.scss', - 'themes/metro/css/theme': publicPath + '/themes/metro/scss/theme.scss', - 'themes/original/css/theme': publicPath + '/themes/original/scss/theme.scss', - 'themes/pmahomme/css/theme': publicPath + '/themes/pmahomme/scss/theme.scss', - 'setup/styles': publicPath + '/setup/scss/styles.scss', + 'public/themes/bootstrap/css/theme': publicPath + '/themes/bootstrap/scss/theme.scss', + 'public/themes/metro/css/theme': publicPath + '/themes/metro/scss/theme.scss', + 'public/themes/original/css/theme': publicPath + '/themes/original/scss/theme.scss', + 'public/themes/pmahomme/css/theme': publicPath + '/themes/pmahomme/scss/theme.scss', + 'public/setup/styles': publicPath + '/setup/scss/styles.scss', }, output: { filename: 'build/css/[name].js', - path: publicPath, + path: rootPath, }, module: { rules: [