mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
chore(webpack): suggest @nuxtjs/style-resources
(#5499)
This commit is contained in:
parent
d0afaa1daf
commit
164f73a716
@ -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)) {
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user