aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..a251411
--- /dev/null
+++ b/webpack.config.js
@@ -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
+ }
+};