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..8b713a6
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,19 @@
+const path = require('path');
+
+module.exports = {
+ entry: './src/client/javascript/main.js',
+ output: {
+ path: path.resolve(__dirname, 'src/client/static'),
+ filename: 'bundle.js'
+ },
+ module: {
+ rules: [
+ {
+ test: [/\.js$/],
+ exclude: [/node_modules/],
+ loader: 'babel-loader',
+ options: { presets: ['es2015'] }
+ }
+ ]
+ }
+} \ No newline at end of file