From 600db733c081141451231d577fff02058c6bc4ed Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Fri, 8 Sep 2017 20:56:03 +0200 Subject: Migrate from browserify to webpack --- webpack.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') 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 -- cgit v1.1