/webpack-generator

webpack兼容IE8的项目开发的脚手架,主要是为了使用ES6

Primary LanguageJavaScript

Usage

npm i
npm run server ,ie8及以下环境运行npm run ie8-server

Production build

npm run build

Notes

  • Uses es3ify as a post loader to convert ES5 to ES3
  • Uses es5-shim from a CDN in the HTML source
  • "loose": true is needed in .babelrc to avoid Object.defineProperty
  • HMR needs to be turned off (adds Object.defineProperty that breaks IE8)
  • If you use UglifyJsPlugin don't forget the screw_ie8 option.

Related reading