mirror of
https://github.com/Raghu-Ch/ES6-Handson.git
synced 2026-02-10 04:33:02 -05:00
24 lines
446 B
JavaScript
24 lines
446 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './js/main.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'build'),
|
|
filename: 'main.bundle.js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
query: { presets: ['es2015']}
|
|
}
|
|
]
|
|
},
|
|
stats: {
|
|
colors: true
|
|
},
|
|
devtool: 'source-map'
|
|
};
|