router-module icon indicating copy to clipboard operation
router-module copied to clipboard

the css load order changes after using @nuxtjs/router

Open WalterBrightHub opened this issue 2 years ago • 0 comments

Hi, I met a problem. this is nuxt.config.js

export default {
  //...
  css:[
    '@/assets/common.css',
  ]
}

when I use the default router of nuxt, it works, the common.css is loaded before all the other style modules in apps and components. but when I use @nuxtjs/router, the common.css is loaded after all the other style modules. how to load any common css file before build the routers?

WalterBrightHub avatar Jun 08 '22 07:06 WalterBrightHub