美文网首页
weex budlerjs压缩

weex budlerjs压缩

作者: 逝水ly | 来源:发表于2018-08-21 09:26 被阅读0次

    /**

    • Plugins for webpack configuration.
      /
      const plugins = [
      /
      • Plugin: BannerPlugin
      • Description: Adds a banner to the top of each generated chunk.
      • See: https://webpack.js.org/plugins/banner-plugin/
        /
        new webpack.BannerPlugin({
        banner: '// { "framework": "Vue"} \n',
        raw: true,
        exclude: 'Vue'
        }),
        /
        *
      • 使用压缩
        */
        new webpack.optimize.UglifyJsPlugin({
        compress: {
        warnings: false
        },
        //保留banner
        comments: '// { "framework": "Vue"} \n',
        sourceMap: true
        })
        ];

    相关文章

      网友评论

          本文标题:weex budlerjs压缩

          本文链接:https://www.haomeiwen.com/subject/mlkdiftx.html