Skip to content

Commit

Permalink
fix minimizer plugin (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lezram authored Mar 22, 2020
1 parent b5be474 commit 0a7aeec
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 75 deletions.
266 changes: 195 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lezram/math-interval",
"version": "0.0.4",
"version": "0.0.5",
"description": "Working with mathematical intervals",
"main": "dist/node/index.js",
"types": "dist/node/index.d.ts",
Expand Down Expand Up @@ -29,10 +29,10 @@
"@types/jest": "^25.1.4",
"awesome-typescript-loader": "^5.2.1",
"jest": "^25.1.0",
"terser-webpack-plugin": "^2.3.5",
"ts-jest": "^25.2.1",
"ts-node": "^8.7.0",
"typescript": "^3.8.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
},
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
entry: {
Expand All @@ -10,7 +10,7 @@ module.exports = {
devtool: 'source-map',
optimization: {
minimizer: [
new UglifyJsPlugin({
new TerserPlugin({
sourceMap: true,
include: /\.min\.js$/,
}),
Expand Down

0 comments on commit 0a7aeec

Please sign in to comment.