Open darylteo opened 8 years ago
@IngwiePhoenix Please fix!
Yeah, my "fix":
loader: 'style!raw!string-replace?search=url%5C("%5C/&replace=url("&flags=gm!fontgen'
@jardilio Did something similiar.
'style!replace?flags=g®ex=\/font\/&sub=\.\/font\/!css!fontgen?fileName=./font/[hash][ext]'
Though I wrote and now using icon-maker-loader, you might like it.
I have this issue too. please fix :)
I have this issue as well.
Though I have created the fork of this repo and released as font-gen-loader
on npm
The fix for this is simply path.normalize
in the script https://nodejs.org/api/path.html#path_path_normalize_path
I'm generating a package that will be placed in a folder structure like so: "builds/{version}/dist/", which is where all the files will sit. However, when the css file is generated, it generates url links from the root.
Can I configure this loader to do otherwise? After all, it's not like the css and the fonts will be in different places.
I've tried publicPath but that just crashes webpack.
Edit: For the record: I'm hacking around this currently with StringReplacePlugin.