Skip to content

Commit

Permalink
fix: babelの設定をwebpack.config.jsから.babelrcに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
sable-virt committed Feb 25, 2016
1 parent 62fe9f6 commit 197be97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ let webpackConfig = {
],
loaders: [
{ test: /\.html$/, exclude:/node_modules/, loaders: ['html'] },
{ test: /Spec\.js$/i, exclude:/node_modules/, loaders: ['webpack-espower','babel?presets[]=es2015'] },
{ test: /\.jsx?$/, exclude:/node_modules/, loaders: ['babel?presets[]=es2015'] }
{ test: /Spec\.js$/i, exclude:/node_modules/, loaders: ['webpack-espower','babel'] },
{ test: /\.jsx?$/, exclude:/node_modules/, loaders: ['babel'] }
]
},
plugins: [
Expand Down

0 comments on commit 197be97

Please sign in to comment.