Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有 core1.js、core2.js 和 wrapper.js。如何配置 NPM 以生成两个目标:
场景是我需要为公众发布 all.js;和 core.js 在内部用于另一个团队和另一个项目。谢谢!
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.