npm install minified version only

后端 未结 1 481
暖寄归人
暖寄归人 2020-12-31 01:06

I just installed Node with npm to use it for frontend dependency management. I know there is also bower but why would I need another package manage

相关标签:
1条回答
  • 2020-12-31 01:53

    There is no standard way to ask npm to get the minified version of a library. Some developers will produce packages that contain both minified and unminified versions (that's what I've done for one of my projects, which is web-only but can be installed through npm) or will create a package that contains an unminified version and another package that contains the minified version. This is done on a case by case basis, varies from package to package, and has to be determined by looking at a project's documentation.

    If a developer has not cared to provide a minified code base through npm then you'll have to perform the minification yourself or get the "official" minified code through some other means.

    0 讨论(0)
提交回复
热议问题