Conditional build based on environment using Webpack

前端 未结 9 651
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 21:40

I have some things for development - e.g mocks which I would like to not bloat my distributed build file with.

In RequireJS you can pass a config in a plugin file an

9条回答
  •  离开以前
    2020-11-30 22:27

    Use envirnment variables to create dev and prod deployments:

    https://webpack.js.org/guides/environment-variables/

提交回复
热议问题