Skip to content

Commit 663d9f3

Browse files
committed
fix #34
1 parent 508f3b4 commit 663d9f3

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/routes/Home/components/HomeBanner/HomeBanner.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.home-banner {
22
.banner-bg {
3-
background-image: url('../../../../static/img/banner-bg.png');
3+
background-image: url('banner-bg.png');
44
background-position: 0 0;
55
background-repeat: no-repeat;
66
background-size: cover;
@@ -50,7 +50,7 @@
5050
background-position: 0 0;
5151
background-repeat: no-repeat;
5252
}
53-
53+
5454
}
5555
}
56-
}
56+
}

src/routes/Home/components/HowItWorks/HowItWorks.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.how-it-works {
22
.how-it-works-bg {
3-
background-image: url('../../../../static/img/how-it-works-bg.png');
3+
background-image: url('how-it-works-bg.png');
44
background-position: 0 0;
55
background-repeat: no-repeat;
66
background-size: cover;
@@ -37,4 +37,4 @@
3737
}
3838
}
3939
}
40-
}
40+
}

src/styles/img/banner-bg.png

498 KB
Loading

src/styles/img/how-it-works-bg.png

231 KB
Loading

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const path = require('path');
44
const _ = require('lodash');
5+
const ip = require('ip');
56
const webpack = require('webpack');
67
const Dotenv = require('dotenv-webpack');
78

@@ -93,7 +94,7 @@ module.exports = {
9394
output: {
9495
filename: '[name].[hash].js',
9596
path: path.join(__dirname, './dist'),
96-
publicPath: '/',
97+
publicPath: __DEV__ ? `http://${ip.address()}:${config.PORT}/` : '/',
9798
},
9899
plugins: [
99100
new Dotenv({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy