You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add a stylus plugin to stylusOptions.use and run webpack in dev mode. At startup, everything is normal. However, after I change the code and trigger recompilation, the plugin in stylusOptions.use are gone, which leads to a build failure.
Actual Behavior
Due to the lack of plugins, the Stylus function I defined is not imported, resulting in the generated product not being correctly recognized by the css-loader.
Expected Behavior
During recompilation, the plugin in stylusOptions.use can still be found.
The text was updated successfully, but these errors were encountered:
zavierkolten
changed the title
Stylus plugins in function format will be lost during recompile
The Stylus plugin passed in through stylusOptions.use will be lost during recompilation
Sep 17, 2024
Bug report
When I add a stylus plugin to
stylusOptions.use
and run webpack in dev mode. At startup, everything is normal. However, after I change the code and trigger recompilation, the plugin instylusOptions.use
are gone, which leads to a build failure.Actual Behavior
Due to the lack of plugins, the Stylus function I defined is not imported, resulting in the generated product not being correctly recognized by the css-loader.
Expected Behavior
During recompilation, the plugin in
stylusOptions.use
can still be found.How Do We Reproduce?
repository: https://github.com/zavierkolten/stylus-loader-debug
branch: main
console.log
to "stylus-loader/dist/index.js"First time:
After recompiling:
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: