Global CSS is removed on production build #10474
Unanswered
WoodNeck
asked this question in
Questions (Nuxt 2)
Replies: 1 comment 2 replies
-
did you get any solution ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm creating the library
@egjs/flicking
and making a guide for the users who use it with nuxt.js.My module requires a single CSS file to be displayed correctly, so I tried nuxt.js's Global CSS to load it.
My config looks like this:
It loads on the development environment correctly, but it is being removed when I actually build the static site.
I've tried that on fresh new page built with
npx create-nuxt-app <project-name>
Any guess on why? Any help is appreciated :)
How it should look
How it looks on production build, due to the missing CSS
Styles that I could found on development mode
<head> tag of production mode
The repository that reproduce this issue: https://github.com/WoodNeck/nuxt-flicking-global-css
Nuxt version: 2.15.8
Beta Was this translation helpful? Give feedback.
All reactions