xiaofuzi / rollup-plugin-less

a less rollup plugin
22 stars 23 forks source link

Fix watcher mode file merge #32

Open vdimir opened 3 years ago

vdimir commented 3 years ago

This PR suggest a solution to handle multiple files in watcher mode. It tracks loaded files and checks whether a file was used on current watcher iteration. Compiled css stored in a map that is updated on transform stage and is written into file on generateBundle stage.

Also some minor style changes

Node package 'fs' used prior to 'fs-extra' and 'mkdirp' (packgage.json and package-lock updated)