The page is displayed using php, using gulp to display selectors in the css file. In other words, to create a blank css file with already registered Php + nodejs selectors - an example of development on a local server:

const gulp = require('gulp'); const browserSync = require('browser-sync').create(); gulp.task('serve', function(){ browserSync.init({ //proxy: "http://your_site" proxy: { target: "http://your_site" }, open: "external", host: "your_site", port: 3000 }); browserSync.watch("**/*.*").on("change", browserSync.reload); }); 
  • 2
    And you can be more clear? - Vadizar
  • In general, that would not look for the names of classes, IDs, tags - and then each file in the css file to run the plugin, and the css file is ready with the specified selectors. Just sit down and add properties to the finished disc (css file). - walerij2406
  • In general, the question is - is there such a plugin, thanks in advance - walerij2406

1 answer 1

It is unlikely that such a plugin is needed, t. To.

  1. Trash is not needed in the css file. With such tasks IDE can quite cope.
  2. The order of css selectors in the file is important.
  3. Selectors can be composite.
  4. Php + nodejs is a dubious collection.

On the other hand, I can’t exclude that someone did something like that.

  • And where is the answer to the question? It’s not how your opinion was asked. - Vadizar
  • @Vadizar, the answer is: "97% that such a plugin does not exist, because it is useless and involves a rarely used bundle of technologies." - Qwertiy
  • I see the reasoning in the answer, and if the answer itself is, then it is between the lines. - Vadizar
  • I saw it right now and didn’t figure it out yet, but please help - postcss-list-selectors (A PostCSS plugin that exports all CSS selectors to JSON file.) - walerij2406
  • @ walerij2406, from css to json - this is not from php to css ... - Qwertiy