-
-
Notifications
You must be signed in to change notification settings - Fork 255
Output files to a different dir #32
Comments
same question. |
it is not a bug, you can add a query parameter
see loader-utils source code |
If you want for example emit your files at fonts/some-font.ttf Your css files will try load the fonts from css/fonts/... You can fix this by giving the
This will emit the files in fonts/* and but the publicPath will be .././fonts/** in your css file.. Maybe it helps some one.. |
Thanks for the tip! It would be great if this option was documented in the README. |
Closing since the question has been answered. Feel free to add this to the readme with a PR. |
ps: the param to the file-loader is publicPath - beware cut and paste of pubicPath from above |
@dropfen , publicPath QueryString, best tip ever. Thanks! |
we can also set the publicPath to an absolute path, so the assets can be accessed by all css |
that sneaky |
Hello,
I am building an web app using bootstrap. I had this line to include the .css file
I would like to output the corresponding font files that
bootstrap.min.css
relies on to/dist/css/
Here is a simplified version of my webpack.config.js:
How can I config file-loader to output the font files to
/dist/css
instead of/dist/
?Thank you!
The text was updated successfully, but these errors were encountered: