webpack
EdenZhang1225
尽最大努力做好每一件事
展开
-
webPack 使用方便快捷
1 npm install webpack -g 全局安装 2 在项目是建立webpack.config.js var path=require('path'); module.exports={ entry:{ homePage: './staticweb/js/home-page.js', productPage: './staticweb原创 2016-06-14 13:44:37 · 469 阅读 · 0 评论 -
babel-polyfill 配置支持IE版本
方法一 import 'babel-polyfill';//这样在入口文件中引入将增大文件大小 方法二这样引入将减少文件大小 在.babelrc文件添加 { "presets": [ "es2015", "react" ], "plugins": [ ["transform-runtime", { "helpers": false, // defaults原创 2017-06-20 13:48:06 · 8330 阅读 · 0 评论