intoli / antd-scss-theme-plugin

A Webpack plugin for customizing Ant Design with an SCSS theme file and using Ant Design's compiled variables in SCSS files throughout your project.
https://intoli.com/blog/antd-scss-theme-plugin/
Other
202 stars 80 forks source link

plugin not compatible with ng-zorro-antd. #66

Open gs-mrpatil opened 4 years ago

gs-mrpatil commented 4 years ago

I installed ng-zorro-antd && antd-scss-theme-plugin in angular project. Post installation and plugin configuration, it started throwing errors. themeEntryPath issues. I changed the path

const themeEntryPath = require.resolve('ng-zorro-antd/style/themes/default.less');

after that i changed the sass-loader plugin to version ^7.0.0 because loader API Schema was not compatible. (not compatible with sass-loader ^8.0.0).

Now it is throwing

Invalid CSS after " */": expected 1 selector or at-rule, was "import 'core-js/pro"

can this plugin be made compatible with ng-zorro-antd?

llccing commented 3 years ago

look this issue, https://github.com/NG-ZORRO/ng-zorro-antd/discussions/2243.

just define a theme.less, and import in angular.json.