Skip to content

Instantly share code, notes, and snippets.

@Akintunde102
Created February 2, 2019 04:44
Show Gist options
  • Save Akintunde102/37d50d25e9b0dbbe5274ae3434727f50 to your computer and use it in GitHub Desktop.
Save Akintunde102/37d50d25e9b0dbbe5274ae3434727f50 to your computer and use it in GitHub Desktop.
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=10000&mimetype=application/font-woff'
},
{
test: /\.(ttf|eot)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader'
},
{
test: /\.otf(\?.*)?$/,
use: 'file-loader?name=/fonts/[name]. [ext]&mimetype=application/font-otf'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment