prod.js 488 B

12345678910111213141516171819
  1. const path = require('path');
  2. module.exports = {
  3. env: {
  4. NODE_ENV: '"production"'
  5. },
  6. defineConstants: {},
  7. mini: {},
  8. h5: {
  9. publicPath: '/taro/vue/4x/demo/'
  10. /**
  11. * 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
  12. * 参考代码如下:
  13. * webpackChain (chain) {
  14. * chain.plugin('analyzer')
  15. * .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
  16. * }
  17. */
  18. }
  19. };