diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-29 23:49:06 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-29 23:49:06 +0200 |
| commit | 521573493cb5606a5fcef38eabbbc9951324c3a0 (patch) | |
| tree | fc9961f66d6d9b117c91739d9af0175dfbf2fd03 /config/webpack.common.js | |
| parent | 08d189a8582f91ce917755a335e1dcb77aeaa0c5 (diff) | |
build(webpack): fix prod config for assets
Assets used in Sass was not looking in the right directory once built.
Diffstat (limited to 'config/webpack.common.js')
| -rw-r--r-- | config/webpack.common.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; }, }, |
