Webpack 2 패키지 JS 지원 IE8

695 단어
레 퍼 런 스https://www.maizhiying.me/posts/2017/03/01/webpack-babel-ie8-support.html
  • es3ify - loader 설치
  • 규칙 추가
  •       {
            test: /\.js$/,
            loader: 'es3ify-loader'
          },
    
  • uglifyjsplugin 설정
  •     new webpack.optimize.UglifyJsPlugin({
          compress: {
              warnings: false,
              properties: false
          },
          output: {
            keep_quoted_props: true
          },
          mangle: {
            screw_ie8: false,
            except: ['e']
          }
        })
    

    더 많은:https://feifeiyum.github.io/2017/01/11/webpack2-intro/ http://www.aliued.com/?p=3240 http://imweb.io/topic/5868e1abb3ce6d8e3f9f99bb

    좋은 웹페이지 즐겨찾기