Nuxt/TODO.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2017-02-13 12:32:20 +00:00
Tasks for `0.9.10`:
2017-02-20 22:11:34 +00:00
- [x] `build.publicPath` #25
2017-02-22 18:20:17 +00:00
- [x] Use [name].[chunkhash].js for generated js (production) #218
- [x] Add expired headers (production)
2017-02-20 22:11:34 +00:00
- [x] Activate layout only on afterEach #214
2017-02-22 18:20:17 +00:00
- [x] Custom layout in layouts/error.vue #172
2017-02-28 12:10:58 +00:00
- [x] Add Doc for build.filenames, performance.gzip and performance.prefetch
- [ ] Fork preload-webpack-plugin and use it in package.json
2017-02-22 18:20:17 +00:00
- [ ] Test + Coverage performance, cache, filenames
- [ ] Manual tests on router.base & publicPath
2017-03-02 16:31:37 +00:00
- [ ] asyncData, fetch, transition, validate, scrollToTop can be in mixins and extend (super)
2017-02-20 22:11:34 +00:00
-> Not possible to have custom layout for a page, it should do the condition inside the layout itself (because of the middleware strategy)
2017-02-28 12:10:58 +00:00
Release:
## Deprecated
- `process.BROWSER_BUILD` is deprecated in favour of `process.browser` (`BROWSER_BUILD` will be removed for the 1.0)
- `process.SERVER_BUILD` is deprecated in favour of `process.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`
```js
module.exports = {
plugins: [
'~plugins/client-and-server.js',
{
src: '~plugins/only-client-side.js',
ssr: false // disable for server-side
}
]
}
```