Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
fix svg generation in css for docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
muuk-iO authored and mischabraam committed Sep 8, 2023
1 parent adef663 commit 6bf9e0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/webpack/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,17 @@ module.exports = async function() {
plugins.push(new SVGSpritemapPlugin(themeConfig.svgSprite))
}

let publicPath = host
if (isDev) {
plugins.push(
new webpack.NoEmitOnErrorsPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin()
)
if (dockerUsed) {
publicPath = url.format(url.parse(themeConfig.externalHost));
}

} else {
plugins.push(new UglifyJSPlugin())
}
Expand All @@ -97,7 +102,7 @@ module.exports = async function() {
output: {
path: outputPath,
filename: '[name].js',
publicPath: isDev ? host : '../'
publicPath: isDev ? publicPath : '../'
},
devtool: isDev ? 'eval-source-map' : false,
module: {
Expand Down

0 comments on commit 6bf9e0e

Please sign in to comment.