mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
MM-47631 Just rely on Webpack for image paths in product mode (#4049)
This commit is contained in:
parent
3e9600a803
commit
ccbccc157e
@ -116,7 +116,7 @@ const config = {
|
||||
type: 'asset/resource',
|
||||
generator: {
|
||||
filename: '[name][ext]',
|
||||
publicPath: TARGET_IS_PRODUCT ? '/static/products/boards/' : '/static/',
|
||||
publicPath: TARGET_IS_PRODUCT ? undefined : '/static/',
|
||||
}
|
||||
},
|
||||
],
|
||||
@ -205,12 +205,6 @@ config.plugins.push(new webpack.DefinePlugin({
|
||||
if (NPM_TARGET === 'start:product') {
|
||||
const url = new URL('http://localhost:9006');
|
||||
|
||||
for (const rule of config.module.rules) {
|
||||
if (rule.type === 'asset/resource' && rule.generator) {
|
||||
rule.generator.publicPath = url.toString() + 'static/';
|
||||
}
|
||||
}
|
||||
|
||||
config.devServer = {
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
|
Loading…
x
Reference in New Issue
Block a user