Static GitHub Issues

[816] Different bundles for different pages

prev: yarn run generate, error:Cannot read property 'split' of undefined
next: TypeError: Cannot read property 'then' of undefined when "npm run generate"

Hi, My application has two categories of pages. One set uses a specific set of js and css. Other pages has a totally different js and css files. How can I create two different bundles. For eg: mydomain.com/foo - This has carousel and some other theme files and css. mydomain.com/bar - This has our own custom js and css which is not needed in /foo

I don't want the css from /bar to be included in /foo because it will affect the styles.

How to achieve this? Thanks for the help.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c701">#c701</a>)</em></sub></div>