Closed bioinformatist closed 3 years ago
@bioinformatist Hi! I'm not too familiar with stylus-loader
-- my recommendation to debug this is to output the generated webpack config using:
https://neutrinojs.org/usage/#inspecting-the-generated-webpack-config
...and then check against the stylus-loader
docs to see how it compares to what they say to use.
@bioinformatist I have decided to help you and released neutrino-middleware-stylus-loader that should resolve your problem. I am not strong in Stylus, so If you will have some problems open an issue or Pull Request in GitHub
@edmorley Good suggestion~ @constgen Thanks for this released middleware.
I'll have a try.
Hey dear contributors,
I have used neutrino for months, and it's really fantastic tool as a packing tool chain.
I wanna use stylus as well as css with React preset, so my
.neutrinorc.js
seems as:And my global style settings is only code with one line written in
App.styl
which is in the same directory asApp.jsx
:It just imports one css file.
But when I try call
npm start
, it raises error:Unfortunately, the webpack still call stylus-loader to parse the imported css. So what's wrong here?
Thank you in advance.