diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-17 13:26:50 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-17 14:31:18 +1000 |
commit | 2c5d32c0117f200b188599d39926e8bfeafe9995 (patch) | |
tree | dfc5a5fe0e1cbb60249e8140bb26d1cc640881bc /webpack.config.js | |
parent | 32bb4b116bab3df193f1ca1db022c217bd5f2cda (diff) | |
download | fengari-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.js | 6 |
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({ |