terence55 / themes-switch

Toolset for switch multiple themes in application based on webpack
54 stars 18 forks source link

Doesn't work with MiniCssExtractPlugin v1.x #17

Open rohit-gohri opened 3 years ago

rohit-gohri commented 3 years ago

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? }
terence55 commented 3 years ago

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.

rohit-gohri commented 3 years ago

Awesome. Will try it out later, paused work on dark-mode for now. Can close the issue.

meteor199 commented 3 years ago

error with MiniCssExtractPlugin v0.9

Error: Cannot find module 'mini-css-extract-plugin/dist/plugin-options.json'
terence55 commented 2 years ago

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.