diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
commit | 697ef457e1b0eabd3aa9fb2332a5d04478b39603 (patch) | |
tree | 4d93ec7e3d1cc698a5c54de9785d688bf510ed15 /webpack.config.js | |
parent | 3e439ed653093e6e124a4997f64053164f1043b8 (diff) | |
download | fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.gz fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.bz2 fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.zip |
Webpack (single bundle for now)
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 20 |
1 files changed, 20 insertions, 0 deletions
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), + }) + ] + } +]; |