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 (
|
return (
|
||||||
<section
|
<section
|
||||||
className="card card--section card--wallet-balance"
|
className="card card--section card--wallet-balance"
|
||||||
style={{ backgroundImage: `url(/${BalanceBackground})` }}
|
style={{ backgroundImage: `url(${BalanceBackground})` }}
|
||||||
>
|
>
|
||||||
<header className="card__header">
|
<header className="card__header">
|
||||||
<h2 className="card__title">{__('Balance')}</h2>
|
<h2 className="card__title">{__('Balance')}</h2>
|
||||||
|
|
|
@ -28,14 +28,7 @@ export default class extends React.PureComponent<Props> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="yrbl-wrap">
|
<div className="yrbl-wrap">
|
||||||
<img
|
<img alt="Friendly gerbil" className={classnames('yrbl', className)} src={image} />
|
||||||
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}`
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
{title && subtitle && (
|
{title && subtitle && (
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
<h2 className="card__title">{title}</h2>
|
<h2 className="card__title">{title}</h2>
|
||||||
|
|
|
@ -16,6 +16,7 @@ const webConfig = {
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: __dirname + '/dist/web',
|
path: __dirname + '/dist/web',
|
||||||
|
publicPath: '/',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue