Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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