webpack不可以使用ES6的import和export,配置如下 财富值6

2016-11-06 00:44发布

图片描述

{   "name": "webpack-sample-project",   "version": "1.0.0",   "description": "Sample webpack project",   "scripts": {     "start": "webpack"   },   "author": "zhang",   "license": "ISC",   "devDependencies": {     "babel-core": "^6.18.2",     "babel-loader": "^6.2.7",     "babel-preset-es2015": "^6.18.0",     "babel-preset-es2016": "^6.16.0",     "babel-preset-react": "^6.16.0",     "json-loader": "^0.5.4",     "webpack": "^1.12.9",     "webpack-dev-server": "^1.16.2"   } } 
友情提示: 问题已经关闭,关闭后问题禁止继续编辑,回答。