Skip to content

Commit

Permalink
remove uuid in favor of window.crypto; use terser instead of uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Aug 5, 2020
1 parent 85d5e58 commit 8928397
Show file tree
Hide file tree
Showing 4 changed files with 672 additions and 987 deletions.
17 changes: 8 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ var rename = require('gulp-rename');
var webpackStream = require('webpack-stream');
var webpack = require('webpack');
var createWebpackConfig = require('./webpack.base');
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
var TerserPlugin = require('terser-webpack-plugin');

// entry points for both configs
var npmEntry ='./index.js';
var classicEntry = ['babel-polyfill', npmEntry];

const optimization = {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
keep_fnames: true
}
minimizer: [new TerserPlugin({
extractComments: false,
terserOptions: {
compress: {
keep_fnames: true
}
})
]
}
})]
};

const swapCryptoWithRSAImpl = new webpack.NormalModuleReplacementPlugin(
Expand Down
Loading

0 comments on commit 8928397

Please sign in to comment.