Skip to content

Instantly share code, notes, and snippets.

@dphaener
Created January 20, 2016 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dphaener/2fa6cb47a74544631e31 to your computer and use it in GitHub Desktop.
Save dphaener/2fa6cb47a74544631e31 to your computer and use it in GitHub Desktop.
Webpack extra config
// Add these to the loaders in webpack.config.js
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
// Install the loaders for that
npm install --save url-loader file-loader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment