Permalink
Browse files

Setup module loaders

Use babel for js files
Use json for json files
  • Loading branch information...
rricard committed Nov 22, 2015
1 parent f7787b3 commit bccdaf2586350604d27c4fca9ae8a8ffe9375822
Showing with 17 additions and 1 deletion.
  1. +17 −1 webpack.config.js
@@ -1,5 +1,21 @@
var path = require("path");
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015'],
plugins: ['syntax-flow', 'transform-flow-strip-types']
}
},
{
test: /\.json$/,
loader: 'json'
}
]
}
};

0 comments on commit bccdaf2

Please sign in to comment.