Skip to content

Commit

Permalink
use babel-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
HadiChen committed Apr 26, 2017
1 parent f7e82be commit 59c2f20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["es2015"],
"comments": false
"presets": ["es2015"]
}
8 changes: 2 additions & 6 deletions build/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ module.exports = {
[
{
test: /\.(jsx?|babel|es6)$/,
include: '/Users/hua/Documents/其他项目/ddv-cms',
include: dirRoot,
exclude: /node_modules|bower_components/,
loader: 'buble-loader',
query: {
objectAssign: 'Object.assign',
jsx: 'h'
}
loader: 'babel-loader'
},
{
test: /\.json$/,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
"mint-ui": "^2.1"
},
"devDependencies": {
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.1",
"buble-loader": "^0.4.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
"css-entry-webpack-plugin": "^1.0.0-beta.4",
"css-loader": "^0.24.0",
"eslint": "^3.19.0",
Expand Down

0 comments on commit 59c2f20

Please sign in to comment.