themes-switch
themes-switch copied to clipboard
Doesn't work with MiniCssExtractPlugin v1.x
Receive this error:
Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
- options has an unknown property 'moduleFilename'. These properties are valid:
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }
Thanks for your feedback. The root cause is that the moduleFilename
option was removed in MiniCssExtractPlugin v1.x.
I fixed it in the latest version, now it can support both v0.x and v1.x.
Awesome. Will try it out later, paused work on dark-mode for now. Can close the issue.
error with MiniCssExtractPlugin v0.9
Error: Cannot find module 'mini-css-extract-plugin/dist/plugin-options.json'
error with MiniCssExtractPlugin v0.9
Error: Cannot find module 'mini-css-extract-plugin/dist/plugin-options.json'
Fixed in the commit https://github.com/terence55/themes-switch/commit/104340c2294f8e8822977b5acdf83e6a8e143a57 Thanks.