aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-08 20:56:03 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-08 20:56:03 +0200
commit600db733c081141451231d577fff02058c6bc4ed (patch)
treea7462cd6757548f633f630dea45f559ddce84093 /webpack.config.js
parent5af272a81a3df787feda86b655d89ae801bce52c (diff)
Migrate from browserify to webpack
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..1fc43ff
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,19 @@
+const path = require('path');
+
+module.exports = {
+ entry: './public/javascripts/main.js',
+ output: {
+ path: path.resolve(__dirname, 'public/javascripts'),
+ filename: 'bundle.js'
+ },
+ module: {
+ rules: [
+ {
+ test: [/\.js$/],
+ exclude: [/node_modules/],
+ loader: 'babel-loader',
+ options: { presets: ['es2015'] }
+ }
+ ]
+ }
+} \ No newline at end of file