Initial Commit ES6 barebone
This commit is contained in:
19
webpack.config.js
Normal file
19
webpack.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
entry: __dirname + '/src/index.js',
|
||||
output: {
|
||||
path: __dirname + '/dist',
|
||||
publicPath: '/dist/',
|
||||
filename: 'bundle.js'
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: 'babel-loader'
|
||||
}]
|
||||
},
|
||||
devServer: {
|
||||
contentBase: [ './' ],
|
||||
watchContentBase: true
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user