aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webpack.config.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 21bc8c4..7fbcf86 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -5,11 +5,15 @@ const BabiliPlugin = require("babili-webpack-plugin");
module.exports = [
{
entry: './src/fengari.js',
+ target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'fengari.js',
library: 'fengari'
},
+ externals: {
+ "crypto": "crypto"
+ },
plugins: [
new webpack.DefinePlugin({
WEB: JSON.stringify(true),
@@ -18,16 +22,20 @@ module.exports = [
},
{
entry: './src/fengari.js',
+ target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'fengari.min.js',
library: 'fengari'
},
+ externals: {
+ "crypto": "crypto"
+ },
plugins: [
- new BabiliPlugin(),
new webpack.DefinePlugin({
WEB: JSON.stringify(true),
- })
+ }),
+ new BabiliPlugin()
]
}
];