Skip to content

Commit e1ec8d5

Browse files
committed
add webpack cur loader fix #842
1 parent f4f9e6b commit e1ec8d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/webpack/createBaseConfig.js

+10
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ module.exports = function createBaseConfig ({
187187
name: `assets/img/[name].[hash:8].[ext]`
188188
})
189189

190+
config.module
191+
.rule('cursor')
192+
.test(/\.(cur)(\?.*)?$/)
193+
.use('url-loader')
194+
.loader('url-loader')
195+
.options({
196+
limit: inlineLimit,
197+
name: `assets/[name].[hash:8].[ext]`
198+
})
199+
190200
// do not base64-inline SVGs.
191201
// https://github.com/facebookincubator/create-react-app/pull/1180
192202
config.module

0 commit comments

Comments
 (0)