jonkemp / useref

Parse build blocks in HTML files to replace references
MIT License
51 stars 13 forks source link

Any way to make it work as npm script? #9

Closed olhapi closed 7 years ago

olhapi commented 8 years ago

I want to use it as a part of my build system. Is there any way to set folder to look and 'useref' will do the rest?

jonkemp commented 8 years ago

Yes, I would think it wouldn't be that hard to write an npm script using fs to read in the files to useref and then write them back out to disk.