aboutsummaryrefslogtreecommitdiff
path: root/config/webpack.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack.js')
-rw-r--r--config/webpack.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/webpack.js b/config/webpack.js
new file mode 100644
index 0000000..db1837a
--- /dev/null
+++ b/config/webpack.js
@@ -0,0 +1,28 @@
+'use strict';
+
+const Path = require('path');
+
+module.exports = {
+ entry: './lib/sumo',
+
+ output: {
+ path: Path.resolve(__dirname, '../assets'),
+ filename: 'bundle.js',
+ publicPath: '/assets/',
+ library: 'Sumo'
+ },
+
+ module: {
+ rules: [
+ {
+ test: /\.js$/,
+ use: {
+ loader: 'babel-loader',
+ options: {
+ presets: ['babel-preset-env']
+ }
+ }
+ }
+ ]
+ }
+}