Hey, I wonder why it didn't work.
bosens-China opened this issue · 0 comments
bosens-China commented
config
...
new PurgecssPlugin({
paths: glob.sync(`${root}/**/*`, {
nodir: true,
}),
}),
index.html
...
<body>
</body>
index.css
.a {
color: red;
}
.box {
background: #666;
}
build
.a{color:red}.box{background:#666}
It seems a bit frustrating. What's the right thing I do? Root is located in the SRC directory.