From 697ef457e1b0eabd3aa9fb2332a5d04478b39603 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 9 May 2017 11:36:14 +0200 Subject: Webpack (single bundle for now) --- webpack.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 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..7c8dad4 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,20 @@ +const webpack = require('webpack'); +const path = require('path'); +const BabiliPlugin = require("babili-webpack-plugin"); + +module.exports = [ + { + entry: './src/fengari.js', + output: { + path: path.resolve(__dirname, 'dist'), + filename: 'fengari.js', + library: 'fengari' + }, + plugins: [ + new BabiliPlugin(), + new webpack.DefinePlugin({ + WEB: JSON.stringify(true), + }) + ] + } +]; -- cgit v1.2.3-54-g00ecf