0

Let's say I have core1.js, core2.js and wrapper.js. How do I config NPM to generate two targets:

  • core.js which includes core1 and core2
  • all.js which includes everything

The scenario is that I need publish all.js for the public; and core.js internally for another team and another project. Thanks!

Yi Zhang
  • 33
  • 2

1 Answers1

0

Solved this one --- if it is TS, let npm to run TSC based on two different tsconfig. If it is JS, can just concatenate with two different bat files.

Yi Zhang
  • 33
  • 2