0

假设我有 core1.js、core2.js 和 wrapper.js。如何配置 NPM 以生成两个目标:

  • core.js 包括 core1 和 core2
  • all.js 包含所有内容

场景是我需要为公众发布 all.js;和 core.js 在内部用于另一个团队和另一个项目。谢谢!

4

1 回答 1

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.

于 2020-07-09T20:57:57.870 回答