mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
1.3 KiB
1.3 KiB
Tasks for 0.9.10
:
build.publicPath
#25- Use [name].[chunkhash].js for generated js (production) #218
- Add expired headers (production)
- Activate layout only on afterEach #214
- Custom layout in layouts/error.vue #172
- Add Doc for build.filenames, performance.gzip and performance.prefetch
- Fork preload-webpack-plugin and use it in package.json
- Test + Coverage performance, cache, filenames
- Manual tests on router.base & publicPath
- asyncData, fetch, transition, validate, scrollToTop can be in mixins and extend (super)
-> Not possible to have custom layout for a page, it should do the condition inside the layout itself (because of the middleware strategy)
Release:
Deprecated
process.BROWSER_BUILD
is deprecated in favour ofprocess.browser
(BROWSER_BUILD
will be removed for the 1.0)process.SERVER_BUILD
is deprecated in favour ofprocess.server
(SERVER_BUILD
will be removed for the 1.0)
Define plugins
only for client-side
Some Vue plugins might only work for client-side, you can now use an Object
instead of a string to use a plugin only for client-side:
nuxt.config.js
module.exports = {
plugins: [
'~plugins/client-and-server.js',
{
src: '~plugins/only-client-side.js',
ssr: false // disable for server-side
}
]
}