Nuxt/test/fixtures/dll/nuxt.config.js
2017-11-20 10:54:37 +08:00

13 lines
344 B
JavaScript

module.exports = {
build: {
dll: true,
extend(config, options) {
if (options.isClient) {
const dlls = config.plugins.filter(plugin => plugin.constructor.name === 'DllReferencePlugin')
console.log('Using dll for ' + dlls.length + ' libs') // eslint-disable-line no-console
}
return config
}
}
}