From 521573493cb5606a5fcef38eabbbc9951324c3a0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 29 Oct 2021 23:49:06 +0200 Subject: build(webpack): fix prod config for assets Assets used in Sass was not looking in the right directory once built. --- config/webpack.common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/webpack.common.js') diff --git a/config/webpack.common.js b/config/webpack.common.js index 69ecd2f..c277ab6 100644 --- a/config/webpack.common.js +++ b/config/webpack.common.js @@ -32,7 +32,7 @@ module.exports = { generator: { filename: (img) => { const relativePath = img.filename; - const filteredPath = relativePath.replace('src/', ''); + const filteredPath = relativePath.replace('htdocs/src/', ''); return filteredPath; }, }, @@ -43,7 +43,7 @@ module.exports = { generator: { filename: (font) => { const relativePath = font.filename; - const filteredPath = relativePath.replace('src/', ''); + const filteredPath = relativePath.replace('htdocs/src/', ''); return filteredPath; }, }, -- cgit v1.2.3