chore(builder): analyze mode warning rewording (#6924)

This commit is contained in:
Mark Honeychurch 2020-02-25 12:16:43 +13:00 committed by GitHub
parent 16587029d7
commit 084a1ca1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export default class Builder {
if (this.options.build.analyze) {
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.')
})
}

View File

@ -102,7 +102,7 @@ describe('builder: builder constructor', () => {
const doneHook = nuxt.hook.mock.calls[0][1]
doneHook()
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', () => {

View File

@ -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.'],
['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')
}, hooks)