diff --git a/src/routes/Home/components/HomeBanner/HomeBanner.scss b/src/routes/Home/components/HomeBanner/HomeBanner.scss index b2df9f8..c69076c 100644 --- a/src/routes/Home/components/HomeBanner/HomeBanner.scss +++ b/src/routes/Home/components/HomeBanner/HomeBanner.scss @@ -1,6 +1,6 @@ .home-banner { .banner-bg { - background-image: url('../../../../static/img/banner-bg.png'); + background-image: url('banner-bg.png'); background-position: 0 0; background-repeat: no-repeat; background-size: cover; @@ -50,7 +50,7 @@ background-position: 0 0; background-repeat: no-repeat; } - + } } -} \ No newline at end of file +} diff --git a/src/routes/Home/components/HowItWorks/HowItWorks.scss b/src/routes/Home/components/HowItWorks/HowItWorks.scss index 90d3d64..a4bdf32 100644 --- a/src/routes/Home/components/HowItWorks/HowItWorks.scss +++ b/src/routes/Home/components/HowItWorks/HowItWorks.scss @@ -1,6 +1,6 @@ .how-it-works { .how-it-works-bg { - background-image: url('../../../../static/img/how-it-works-bg.png'); + background-image: url('how-it-works-bg.png'); background-position: 0 0; background-repeat: no-repeat; background-size: cover; @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/styles/img/banner-bg.png b/src/styles/img/banner-bg.png new file mode 100644 index 0000000..87fefdb Binary files /dev/null and b/src/styles/img/banner-bg.png differ diff --git a/src/styles/img/how-it-works-bg.png b/src/styles/img/how-it-works-bg.png new file mode 100644 index 0000000..7d60a09 Binary files /dev/null and b/src/styles/img/how-it-works-bg.png differ diff --git a/webpack.config.js b/webpack.config.js index f76fed2..0e3e412 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,7 @@ const path = require('path'); const _ = require('lodash'); +const ip = require('ip'); const webpack = require('webpack'); const Dotenv = require('dotenv-webpack'); @@ -93,7 +94,7 @@ module.exports = { output: { filename: '[name].[hash].js', path: path.join(__dirname, './dist'), - publicPath: '/', + publicPath: __DEV__ ? `http://${ip.address()}:${config.PORT}/` : '/', }, plugins: [ new Dotenv({