Home

Issue: 1230

Can't seem to add Loaders

[issue link]

I used to be able to override loaders in nuxt.config.js
With the build.loaders key.
Doesn’t Work in rc-3, anything we should know ?

loaders: [{
                test: /\.(png|jpe?g|gif|svg)$/,
                loader: 'file-loader',
                query: {
                    limit: 10000, // 10KO
                    name: 'img/[name].[hash].[ext]'
                }
            },
            {
                test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
                loader: 'url-loader',
                query: {
                    limit: 1000, // 1 KO
                    name: 'fonts/[name].[hash:7].[ext]'
                }
            }
        ]
This question is available on Nuxt.js community (#c1087)