The srcDir Property

Define the source directory of your nuxt.js application

Example (nuxt.config.js):

module.exports = {
  srcDir: 'client/'

Then, your application structure can be:

-| app/
---| node_modules/
---| client/
------| pages/
------| components/
---| nuxt.config.js
---| package.json

This option is useful to have a custom server and using nuxt.js, so all npm dependencies can be regrouped in one package.json.

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!