I have been trying to remove unused CSS from the style.css and in bootstrap.min.css in my website that is in development mode. Am using PostCSS & Parcel to do this.
So I installed both PostCSS and Parcel and then created a postcss.config.js.
The postcss.config.js has the following code
postcss.config.js
module.exports = {
Plugins:[
require("postcss-uncss")({
html:[
'/index.html'
]
})
]
}
When I run parcel index.html this error keeps showing up
G:\Aframara Website\images\about\ us.jpg: ENOENT: no such file or directory, open 'G:\Aframara Website\images\about\ us.jpg'
I have 7 Html files and the style.css as mentioned earlier together with bootstrap.min.css.
So I would like to reduce the size of all the two files. I watched this video and did exactly as he said. If anyone has another way I will appreciate thanks.