优艾设计网

webpack不可以使用ES6的import和export,配置如下?

图片描述

{ "name": "webpack-sample-project", "version": "1.0.0", "description": "Sample webpack project", "scripts": { "start": "webpack" }, "author": "zhang"优艾设计网_Photoshop交流, "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" } }


0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜