mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Don't minify non-minified bundle
This commit is contained in:
parent
b7dd23d7b5
commit
c61be077cc
3 changed files with 12 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
### Bug Fixes
|
||||
|
||||
- Fix a number of edge cases where the close and minimize buttons in the equalizer window could render the wrong sprite [#1046](https://github.com/captbaritone/webamp/pull/1046)
|
||||
- Fix a bug where unminified bundle was accidentally minified.
|
||||
|
||||
## 1.4.2
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const path = require("path");
|
||||
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
devtool: "source-map",
|
||||
|
|
@ -51,6 +52,15 @@ module.exports = {
|
|||
maxEntrypointSize: 9000000,
|
||||
maxAssetSize: 9000000,
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
// This allows us to produce both minfied and unminified files.
|
||||
test: /\.min\.js$/i,
|
||||
}),
|
||||
],
|
||||
},
|
||||
entry: {
|
||||
bundle: "./js/webamp.js",
|
||||
"bundle.min": "./js/webamp.js",
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@
|
|||
"reselect": "^3.0.1",
|
||||
"screenfull": "^4.0.0",
|
||||
"style-loader": "^0.23.1",
|
||||
"terser-webpack-plugin": "^1.4.3",
|
||||
"tinyqueue": "^1.2.3",
|
||||
"typescript": "^3.7.2",
|
||||
"url-loader": "^1.1.2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue