fix publicPath
This commit is contained in:
parent
a31fd62e20
commit
5d3fd11e7c
3 changed files with 3 additions and 9 deletions
|
@ -12,7 +12,7 @@ const WalletBalance = (props: Props) => {
|
|||
return (
|
||||
<section
|
||||
className="card card--section card--wallet-balance"
|
||||
style={{ backgroundImage: `url(/${BalanceBackground})` }}
|
||||
style={{ backgroundImage: `url(${BalanceBackground})` }}
|
||||
>
|
||||
<header className="card__header">
|
||||
<h2 className="card__title">{__('Balance')}</h2>
|
||||
|
|
|
@ -28,14 +28,7 @@ export default class extends React.PureComponent<Props> {
|
|||
|
||||
return (
|
||||
<div className="yrbl-wrap">
|
||||
<img
|
||||
alt="Friendly gerbil"
|
||||
className={classnames('yrbl', className)}
|
||||
src={
|
||||
// If we don't use a leading `/` @reach/router will try to append the src url to the existing web url
|
||||
`/${image}`
|
||||
}
|
||||
/>
|
||||
<img alt="Friendly gerbil" className={classnames('yrbl', className)} src={image} />
|
||||
{title && subtitle && (
|
||||
<div className="card__content">
|
||||
<h2 className="card__title">{title}</h2>
|
||||
|
|
|
@ -16,6 +16,7 @@ const webConfig = {
|
|||
output: {
|
||||
filename: '[name].js',
|
||||
path: __dirname + '/dist/web',
|
||||
publicPath: '/',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
Loading…
Add table
Reference in a new issue