survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

Loading Fonts - prefix query has no effect #86

Closed vjancik closed 8 years ago

vjancik commented 8 years ago

I think the prefix query got deprecated or removed, because it no longer works and it's not mentioned in the file-loader GitHub page.

I've replaced this:

prefix: 'font/',

with this:

name: 'font/[hash].[ext]',

and it started doing what it was supposed to.

Mentioned in: http://survivejs.com/webpack/loading-assets/loading-fonts/

Supported by: https://github.com/webpack/file-loader/issues/32

bebraw commented 8 years ago

Thanks. I'll get this fixed.