From 5968e546844fb4872b3d9407db9e7d3dd935926d Mon Sep 17 00:00:00 2001 From: Michele Memoli Date: Wed, 14 Oct 2015 23:30:27 +0100 Subject: [PATCH] Fixed require paths for .png in html --- src/index.html | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 7a9f152..41d3e47 100644 --- a/src/index.html +++ b/src/index.html @@ -36,7 +36,7 @@ padding: 20px; margin-bottom: 20px; height: 58px; - background: #FFB600 url('../img/worklife_logo--small.png') center 20px no-repeat; + background: #FFB600 url('./img/worklife_logo--small.png') center 20px no-repeat; } .climb__tile, .climb__tile__content { background-color: #FFB600; diff --git a/webpack.config.js b/webpack.config.js index 971715b..52ec5ca 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -40,7 +40,7 @@ module.exports = { }, { test: /\.png$/, exclude: /node_modules/, - loader: 'file' + loader: 'file?name=img/[name].[ext]' }, { test: /\.scss$/, exclude: /node_modules/,