summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-17 13:26:50 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-17 14:31:18 +1000
commit2c5d32c0117f200b188599d39926e8bfeafe9995 (patch)
treedfc5a5fe0e1cbb60249e8140bb26d1cc640881bc /webpack.config.js
parent32bb4b116bab3df193f1ca1db022c217bd5f2cda (diff)
downloadfengari-2c5d32c0117f200b188599d39926e8bfeafe9995.tar.gz
fengari-2c5d32c0117f200b188599d39926e8bfeafe9995.tar.bz2
fengari-2c5d32c0117f200b188599d39926e8bfeafe9995.zip
webpack.config.js: Mark crypto as external
Optional dependency of seedrandom. This makes the web bundle *much* smaller
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 21bc8c4..c54580e 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -10,6 +10,9 @@ module.exports = [
filename: 'fengari.js',
library: 'fengari'
},
+ externals: {
+ "crypto": "crypto"
+ },
plugins: [
new webpack.DefinePlugin({
WEB: JSON.stringify(true),
@@ -23,6 +26,9 @@ module.exports = [
filename: 'fengari.min.js',
library: 'fengari'
},
+ externals: {
+ "crypto": "crypto"
+ },
plugins: [
new BabiliPlugin(),
new webpack.DefinePlugin({