Unexpected token: name (DocumentAttributes) with webpack and UglifyJs
问题 I am using docx 5.0.2 version for generating word document with images from the angular type script code. using webpack.optimize.UglifyJsPlugin. Getting this error when building the code . Unexpected token: name (DocumentAttributes) with webpack and UglifyJs. I assume Uglify is not able to minimize or beautify code related to docx library. Any suggestions from people using the docx package. Build used to work fine before docx package added to the package.json 回答1: The problem here is with