According to the latest documentation, in order to import css from a node module I must prefix it with npm: however this does not appear to be working from inside my index.scss or when I try to directly import the stylesheet with <link type=rel/stylesshet>
Import statement is left untouched, browser throws an error saying the asset located at npm:intro.js/introjs.css is not available. If I remove the .css then parcel fails saying that the css file cannot be found, so parcel DOES see this css file, but it's not processing it into the bundle.
💁 Possible Solution
Double check documentation and bundle/build behavior or parcel rc0 for correctness on importing from npm package.
🔦 Context
CSS is broken for me on rc0 (at least during builds, still trying to confirm if this affects dev mode as well)
🐛 bug report
According to the latest documentation, in order to import css from a node module I must prefix it with
npm:
however this does not appear to be working from inside myindex.scss
or when I try to directly import the stylesheet with<link type=rel/stylesshet>
🎛 Configuration (.babelrc, package.json, cli command)
parcel v2.0.0-rc.0
🤔 Expected Behavior
CSS would be merged into bundled stylesheet
😯 Current Behavior
Import statement is left untouched, browser throws an error saying the asset located at
npm:intro.js/introjs.css
is not available. If I remove the.css
then parcel fails saying that the css file cannot be found, so parcel DOES see this css file, but it's not processing it into the bundle.💁 Possible Solution
Double check documentation and bundle/build behavior or parcel rc0 for correctness on importing from npm package.
🔦 Context
CSS is broken for me on rc0 (at least during builds, still trying to confirm if this affects dev mode as well)
💻 Code Sample
🌍 Your Environment