Skip to content

Commit 7ad6a1f

Browse files
authored
Merge pull request #48 from lsentkiewicz/dev
fix #34
2 parents 21940cd + 663d9f3 commit 7ad6a1f

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

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

0 commit comments

Comments
 (0)