Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@raphaelsaunier
Created September 19, 2017 14:58
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 raphaelsaunier/5e296aad093cdc5035827660f95b42bf to your computer and use it in GitHub Desktop.
Save raphaelsaunier/5e296aad093cdc5035827660f95b42bf to your computer and use it in GitHub Desktop.
Webpack config for Quill.js SVG icons
[
// …
{
test: /\.svg$/,
include: [
resolve('./node_modules/quill/assets'),
],
use: [{
loader: 'html-loader',
options: {
minimize: true,
},
}],
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
exclude: [
resolve('./node_modules/quill/assets'),
],
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]'),
},
},
// …
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment