Open harrylincoln opened 7 years ago
Hi there, I'm having the same problem and already tried a lot of things and nothing happens.
Did you resolved this issue by yourself?
@rafaelescrich So I remember it was something like this:
...
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
loader: 'file-loader?name=/fonts/[name].[ext]'
},
...
require('./fonts/font-darkenstone/darkenstone.scss');
Or something like this? maybe a .././fonts/ etc
Webpack paths can be tedious but once you get them it kinda makes sense. More reading here: https://stackoverflow.com/questions/41335456/using-local-web-fonts-with-webpack
Hope that helps!
Thank you very much for your reply.
Has anyone been able to bundle custom fonts with this?
I'm struggling to get my custom fonts served up in the .tmp folder, and eventually the dist, also.
webpack.conf.js
_typography.scss
Directory architecture: package.json conf/ ^--webpack.conf.js dist/ gulp_tasks/ gulpfile.js src/ ^--app/ ^---assets/ ^----fonts/ ^-----MuseoSlab-500.eot