mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 19:38:12 +08:00
fix: fix static file serving in webpack (#2574)
Co-authored-by: Seve Badajoz <severiano.badajoz@chanzuckerberg.com>
This commit is contained in:
co-authored by
Seve Badajoz
parent
ddb601c103
commit
84563291a0
@@ -33,7 +33,7 @@ const devConfig = {
|
|||||||
options: {
|
options: {
|
||||||
name: "static/assets/[name].[ext]",
|
name: "static/assets/[name].[ext]",
|
||||||
// (thuang): This is needed to make sure @font url path is '/static/assets/'
|
// (thuang): This is needed to make sure @font url path is '/static/assets/'
|
||||||
publicPath: "/",
|
publicPath: "..",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const prodConfig = {
|
|||||||
options: {
|
options: {
|
||||||
name: "static/assets/[name]-[contenthash].[ext]",
|
name: "static/assets/[name]-[contenthash].[ext]",
|
||||||
// (thuang): This is needed to make sure @font url path is '../static/assets/'
|
// (thuang): This is needed to make sure @font url path is '../static/assets/'
|
||||||
publicPath: "static/",
|
publicPath: "..",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user