-
-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Description
Cannot be used correctly on ant-design. Will delete the associated style.
Describe the bug
before use:
after use:
code:
import 'antd/dist/antd.min.css';
import { Button } from 'antd';
...
<p>
<Button type='danger'>buy</Button>
</p>config: ( use react-app-rewired on create-react-app )
const PurgecssPlugin = require('purgecss-webpack-plugin');
const glob = require('glob-all');
module.exports = function override(config, env) {
const purgecssPlugin = new PurgecssPlugin({
paths: ['./public/index.html', ...glob.sync(`./src/*`)],
});
if (env !== 'development') {
config.plugins = [...config.plugins, purgecssPlugin];
}
return config;
};To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows]
- Version of Purgecss [latest]
"glob-all": "^3.1.0",
"purgecss-webpack-plugin": "^1.4.0",
Additional context
Add any other context about the problem here.
tgdn, jpcafe10, skrzepij, Lizhooh, isggwp and 1 more
Metadata
Metadata
Assignees
Labels
No labels

