Skip to content

Commit 60cd76a

Browse files
author
Sam A. Horvath-Hunt
committed
Fix relative URLs in CSS not working in dev mode
1 parent a92b0f1 commit 60cd76a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/app/templates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"nodemon": "^1.10.2",
2929
"postcss-loader": "^0.13.0",
3030
"run-sequence": "^1.2.2",
31-
"style-loader": "^0.13.1",
31+
"style-loader": "github:bendytree/style-loader",
3232
"webpack": "2.1.0-beta.24",
3333
"webpack-dev-middleware": "^1.8.1",
3434
"webpack-dev-server": "^2.1.0-beta.4",

generators/app/templates/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = {
8989
{
9090
test: /\.<%= cssExt %>$/,
9191
loaders: [
92-
'style',
92+
'style?fixUrls', // This is to fix sourcemaps breaking relative URLs in CSS
9393
'css?sourceMap',
9494
'postcss',
9595
'<%= cssLoader %>?sourceMap'

0 commit comments

Comments
 (0)