Nuxt/TODO.md
2017-03-01 17:54:44 +01:00

1.2 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

-> 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 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

module.exports = {
  plugins: [
    '~plugins/client-and-server.js',
    {
      src: '~plugins/only-client-side.js',
      ssr: false // disable for server-side
    }
  ]
}