Skip to content

Commit 0859cdc

Browse files
committed
Fix: Server-side rendering of images
Fixes #79
1 parent 3b70c61 commit 0859cdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}],
2323
["transform-assets", {
2424
"extensions": ["gif", "jpeg", "jpg", "png"],
25-
"name": "[hash].[ext]"
25+
"name": "/images/[hash].[ext]"
2626
}]
2727
]
2828
}

config/webpack/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
loader: 'file-loader',
6060
options: {
6161
outputPath: '/images/',
62-
publicPath: '/images/../',
62+
publicPath: '',
6363
},
6464
}, {
6565
test: /\.scss$/,

0 commit comments

Comments
 (0)