summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js20
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),
+ })
+ ]
+ }
+];