danielstjules / jsinspect

Detect copy-pasted and structurally similar code
MIT License
3.56k stars 128 forks source link

Webpack loader #50

Closed chiptus closed 7 years ago

chiptus commented 7 years ago

I want to build a webpack loaded for this. What do you think? Maybe a plugin would be more appropriate?

danielstjules commented 7 years ago

Not sure! Probably not a loader, since you wouldn't have any tasks that rely on the "transformations" applied by jsinspect (its output). A plugin could make sense if you wanted to constantly write jsinspect's output to some build file automatically. More often than not, it's likely easier to just use it in an npm script.

danielstjules commented 7 years ago

Closing for now :)