D
D
dhat2016-11-21 17:18:57
css
dhat, 2016-11-21 17:18:57

Is there any way to automatically remove unused CSS (and JS) code?

For example, there is a CSS file, there are many classes. And the HTML markup uses only one class from the entire file. Is there any plugin for faucets and task runners that removes unused code? webpack, Gulp is desirable. Isn't that what CSScomb is for?
Same question for JS. There are the same jQuery/plugins for it. Only a pitiful part of the entire code for a small feature on the site is used - is it somehow possible to extract only the "necessary" code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2016-11-21
@politon

Wang that bootstrap is used))
Then customize collect getbootstrap.com/customize

L
Learn Prog, 2017-03-10
@wantknow

https://www.npmjs.com/package/gulp-uncss

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question