Article From:https://segmentfault.com/q/1010000011708914
Question:

staynuxt Developed, first run.npm run build And then runnpm start Discover and open the browser and find that all the packaged.Js of pages are loaded in. The development is loaded on demand.

As follows,

herodetail.js It’s coming in./herodetail It’s only when the route is loaded. Isn’t nuxt loading the resource file on demand? Ask God how to configure it

Answer 0:

I want to ask you the same question.

This problem has been solved.
Set up in nuxt.config.js:
module.exports = {
render: {

resourceHints: false,

},
……
……
}

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *