mmRouter icon indicating copy to clipboard operation
mmRouter copied to clipboard

webpack2 打包在ie8下有很多兼容性问题,我看这个案例是用webpack 1 打包的,想问下有什么好的办法吗

Open focusbe opened this issue 8 years ago • 2 comments

担心使用webpack 1时有些问题解决不了或者插件不支持webpack 1,带来兼容性的问题

focusbe avatar May 21 '17 13:05 focusbe

我没有用过webpack2

RubyLouvre avatar May 21 '17 16:05 RubyLouvre

使用webpack1打包的时候不压缩js,打包后再用gulp或grunt的uglify压缩,设置其参数ie8:true,这样就可以将对象属性如class加上引号'class',xxx.class编译成xxx['class']。

capricorncd avatar Aug 24 '17 07:08 capricorncd