Using closure-compiler as a browser dependency
divs1210 opened this issue · 1 comments
divs1210 commented
I'm trying to write a JS (browser) library that depends on the google-closure-compiler to provide some tooling.
I want to set up a basic npm project that:
- Has google-closure-compiler as a dependency
- Uses the compiler to provide a function
(jsCodeString) => compiledJSCodeString
- Can be compiled via closure-compiler into a single JS file that works in the browser
But there are a lot of moving parts and I've been unable to get such a project set up.
An outline of what tools I should be using and how they fit together would be much appreciated.
divs1210 commented
nevermind, got it to work!