Skip to content

Commit

Permalink
Fixing absolute images and webpack config for device
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Jan 29, 2016
1 parent 2ceb6c7 commit 74a146b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/Step.js
Expand Up @@ -23,7 +23,7 @@ const Step = React.createClass({
'hidden': currentStep === totalSteps
});
const style = {
backgroundImage: `url(/images/step-${currentStep}.jpg)`,
backgroundImage: `url('images/step-${currentStep}.jpg')`,
};
return (
<div className='step' style={style}>
Expand Down
2 changes: 1 addition & 1 deletion app/css/start.css
@@ -1,5 +1,5 @@
.start {
background: url('/images/start.png') no-repeat center center fixed;
background: url('images/start.png') no-repeat center center fixed;
background-size: cover;
bottom: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/css/step.css
Expand Up @@ -4,7 +4,7 @@
right: 0;
bottom: 0;
left: 0;
background: url('/images/start.png') no-repeat center center fixed;
background: url('images/start.png') no-repeat center center fixed;
background-size: cover;
}

Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Expand Up @@ -20,12 +20,12 @@ const common = {
loaders: [
{
test: /\.css$/,
loaders: ['style', 'css'],
loaders: ['style', 'css?url=false'],
include: PATHS.app,
},
{
test: /\.jsx?$/,
loaders: ['babel?cacheDirectory'],
loader: 'babel?cacheDirectory',
include: PATHS.app,
}
]
Expand Down

0 comments on commit 74a146b

Please sign in to comment.