CSS imports from NPM dependencies do not resolve. #2389
Unanswered
pvormittag
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While running through Snowpack's and Spectrum's respective getting started guides, I found the basic setup will result in no CSS being loaded into the application. Neither
npm start
ornpm run build
will produce output with CSS.Will Snowpack resolve CSS imports (e.g.
import "./main.css"
) from NPM dependancies? Is Snowpack applying dead code elimination techniques in this case since the top level application is not explicitly importing the css files?They state in their documentation that your build system must support CSS imports. As Snowpack's documentation states CSS can be imported, I found this surprising.
Any insight would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions