From 11be5ebabcdab8272d938f7b90ef0ea9be29a421 Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Fri, 20 Apr 2018 16:41:25 -0500 Subject: Initial Project Setup (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 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 --- config/webpack.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/webpack.js (limited to 'config/webpack.js') 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'] + } + } + } + ] + } +} -- cgit