diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..4b3ed7a --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,32 @@ +var path = require('path'); + +const src = path.resolve(__dirname, 'src'); +const dist = path.resolve(__dirname, 'build'); + +module.exports = { + entry: { + index: path.join(src, 'index.js') + }, + + output: { + path: dist, + filename: '[name].js' + }, + + module: { + loaders: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel-loader', + query: { + presets: [ 'es2015' ] + } + } + ] + }, + + resolve: { + extensions: [ '.js' ] + } +}; |