Skip to content

Instantly share code, notes, and snippets.

@galvez
Created July 23, 2017 06:23
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 galvez/f76aa8a7cc45ccdc40c9fbc110e29cb2 to your computer and use it in GitHub Desktop.
Save galvez/f76aa8a7cc45ccdc40c9fbc110e29cb2 to your computer and use it in GitHub Desktop.
module.exports = {
build: {
loaders: [
{
test: /\.(png|jpe?g|gif|svg)$/,
loader: 'url-loader',
query: {
limit: 1000, // 1KO
name: 'img/[name].[hash:7].[ext]'
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
query: {
limit: 1000, // 1 KO
name: 'fonts/[name].[hash:7].[ext]'
}
}
]
},
css: ['element-ui/lib/theme-default/index.css'],
plugins: ['plugins/element-ui.js'],
loading: false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment