Nuxt Stack Module
// nuxt.config.js
export default {
modules: ["nuxt-stack"]
}
The nuxt-stack
module does a number of things:
- Overrides some of Nuxt's default options
- Installs and configures a suite of plugins
- Integrates
eslint-loader
with Webpack
Nuxt Overrides
Nuxt Stack overrides the following default options:
// nuxt.config.js
export default {
hardSource: true,
generate: {
fallback: true, // 200.html -> 404.html
subFolders: false // about/index.html -> about.html
},
messages: {
back_to_home: "Return to home page",
error_404: "Page not found"
},
router: {
linkActiveClass: "link-active",
linkExactActiveClass: "link-active-exact"
},
server: {
host: "0.0.0.0", // Access server across the network
port: 5000 // Default port used by serve
}
}
Check out the plugins that are installed and configured by Nuxt Stack. Or head over to the configuration page for information on what options can be passed to these plugins.
Plugins →