chore(webpack): suggest @nuxtjs/style-resources (#5499)

This commit is contained in:
Damian Stasik 2019-04-11 12:04:52 +02:00 committed by Pooya Parsa
parent d0afaa1daf
commit 164f73a716
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export class WebpackBundler {
const { styleResources } = this.buildContext.options.build
if (styleResources && Object.keys(styleResources).length) {
consola.warn(
'Using styleResources without the nuxt-style-resources-module is not suggested and can lead to severe performance issues.',
'Using styleResources without the @nuxtjs/style-resources is not suggested and can lead to severe performance issues.',
'Please use https://github.com/nuxt-community/style-resources-module'
)
for (const ext of Object.keys(styleResources)) {

View File

@ -24,7 +24,7 @@ describe('with-config', () => {
'message': 'Found 2 plugins that match the configuration, suggest to specify extension:'
}],
['Please use `build.postcss` in your nuxt.config.js instead of an external config file. Support for such files will be removed in Nuxt 3 as they remove all defaults set by Nuxt and can cause severe problems with features like alias resolving inside your CSS.'],
['Using styleResources without the nuxt-style-resources-module is not suggested and can lead to severe performance issues.', 'Please use https://github.com/nuxt-community/style-resources-module'],
['Using styleResources without the @nuxtjs/style-resources is not suggested and can lead to severe performance issues.', 'Please use https://github.com/nuxt-community/style-resources-module'],
['Notice: Please do not deploy bundles built with analyze mode, it\'s only for analyzing purpose.']
])
expect(customCompressionMiddlewareFunctionName).toBe('damn')