Skip to content

Commit 2819bda

Browse files
committed
(bugfix) Properly load images universally using url-loader with the isomorphic tool set
1 parent 6a07e1a commit 2819bda

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

webpack/base.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,18 @@ export default {
7171
},
7272
{
7373
test: isomorphicPlugin.regular_expression('images'),
74-
loader: 'url-loader?limit=10240'
74+
use: [
75+
{
76+
loader: 'url-loader',
77+
options: {
78+
limit: 10240
79+
}
80+
}
81+
]
7582
},
7683
{
77-
test: /\.(ttf|eot|svg|jpe?g|png|gif|ico|woff2?)$/,
84+
// Load fonts using file-loader
85+
test: /\.(ttf|eot|woff2?)$/,
7886
loader: 'file-loader'
7987
}
8088
]

0 commit comments

Comments
 (0)