aboutsummaryrefslogtreecommitdiff
path: root/config/webpack.js
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2018-04-20 16:41:25 -0500
committerGitHub <noreply@github.com>2018-04-20 16:41:25 -0500
commit11be5ebabcdab8272d938f7b90ef0ea9be29a421 (patch)
treeb8ee06be115b2bbc1a74185711c96ba334bfdab4 /config/webpack.js
parent0ac89474ea22e706eb54c6ed4630a3337d438876 (diff)
Initial Project Setup (#2)
* 🔧 Add initial package.json * 🔧 Add eslint config * 🔧 Add assets target dir to gitignore * 🔧 Add webpack config * Add a contributing guide * Add the wrapper application * Add autogenerated docs * Add travis config * Add changelog
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']
+ }
+ }
+ }
+ ]
+ }
+}