css assets got wrong order after building
See original GitHub issueI use vite vue 3 with AntDesign, recently found that after running ‘npm run build’, the css assets is not in correct order.
usually the vendor
should go before common
, if not, some custom css will be covered by third-party css.
here is the config
ViteComponents({
dts: true,
resolvers: [
AntDesignVueResolver({
importStyle: 'less',
resolveIcons: true
})
]
}),
`
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
vendor css injected with wrong order after build #6375 - GitHub
But after I run build command (npm run build , npm run preview), the page background color is "pink". Because in vendor-pink.css is...
Read more >Angular wrong css order in production build - Stack Overflow
So Angular transpile that stylesheet on priority basis and gets loaded before the said order. Let see this example:.
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
In this guide, you will learn about the errors that can occur while importing a CSS file into your React file.
Read more >Organizing your CSS - Learn web development | MDN
A good tip is to add a block of comments between logical sections in your stylesheet too, to help locate different sections quickly...
Read more >Styling - Remix
Remix can prefetch CSS assets when the user is about to visit a page with <Link rel="prefetch"> . Changes to components don't break...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in this example, the
<ul>
margin attribute is obviously coverd by vendor css, though i have importedreset.css
. and this only occurred in production mode. in dev mode, thereset.css
works fine. the ant css is imported dynamicly by AntDesignVueResolver, so how can i put thereset.css
before ant css?FYI. https://juejin.cn/post/6938351367517896712