mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
chore(builder): analyze mode warning rewording (#6924)
This commit is contained in:
parent
16587029d7
commit
084a1ca1af
@ -68,7 +68,7 @@ export default class Builder {
|
|||||||
|
|
||||||
if (this.options.build.analyze) {
|
if (this.options.build.analyze) {
|
||||||
this.nuxt.hook('build:done', () => {
|
this.nuxt.hook('build:done', () => {
|
||||||
consola.warn('Notice: Please do not deploy bundles built with analyze mode, it\'s only for analyzing purpose.')
|
consola.warn('Notice: Please do not deploy bundles built with "analyze" mode, they\'re for analysis purposes only.')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ describe('builder: builder constructor', () => {
|
|||||||
const doneHook = nuxt.hook.mock.calls[0][1]
|
const doneHook = nuxt.hook.mock.calls[0][1]
|
||||||
doneHook()
|
doneHook()
|
||||||
expect(consola.warn).toBeCalledTimes(1)
|
expect(consola.warn).toBeCalledTimes(1)
|
||||||
expect(consola.warn).toBeCalledWith('Notice: Please do not deploy bundles built with analyze mode, it\'s only for analyzing purpose.')
|
expect(consola.warn).toBeCalledWith('Notice: Please do not deploy bundles built with "analyze" mode, they\'re for analysis purposes only.')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should support function template', () => {
|
test('should support function template', () => {
|
||||||
|
@ -26,7 +26,7 @@ describe('with-config', () => {
|
|||||||
}],
|
}],
|
||||||
['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.'],
|
['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 @nuxtjs/style-resources 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.']
|
['Notice: Please do not deploy bundles built with "analyze" mode, they\'re for analysis purposes only.']
|
||||||
])
|
])
|
||||||
expect(customCompressionMiddlewareFunctionName).toBe('damn')
|
expect(customCompressionMiddlewareFunctionName).toBe('damn')
|
||||||
}, hooks)
|
}, hooks)
|
||||||
|
Loading…
Reference in New Issue
Block a user