Build and ship LICENSE file

Bring back terser-webpack-plugin from commit c52136c051 and re-enable
it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite
important for shipping distribution packages -- c-{podman,machines} both
do this.

Backport 95021c336e
to make sure that the webpack for the release tarball is *actually*
built in production mode.
This commit is contained in:
Martin Pitt 2021-04-09 16:10:40 +02:00 committed by Katerina Koukiou
parent c52136c051
commit 2624dbb891
4 changed files with 6 additions and 2 deletions

View file

@ -41,6 +41,7 @@
"sizzle": "^2.3.3",
"stdio": "^2.1.0",
"string-replace-loader": "^3.0.0",
"terser-webpack-plugin": "^2.0.1",
"webpack": "^5.31.0",
"webpack-cli": "^4.6.0"
},