{"_id":"@duhongwei/hotpack-compress","_rev":"3-488dcf7752e7bda0673ef6d72e042764","name":"@duhongwei/hotpack-compress","dist-tags":{"latest":"0.4.1"},"versions":{"0.3.0":{"name":"@duhongwei/hotpack-compress","version":"0.3.0","type":"module","description":"hotpack plugin compress","main":"index.js","scripts":{"test":"eslint index.js"},"repository":{"type":"git","url":"git+https://github.com/duhongwei/hotpack-compress.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/duhongwei/hotpack-compress/issues"},"homepage":"https://github.com/duhongwei/hotpack-compress#readme","maintainers":[{"name":"duhongwei","email":"757318006@qq.com"}],"dependencies":{"clean-css":"^5.1.4","html-minifier":"^4.0.0","uglify-es":"^3.3.9"},"devDependencies":{"eslint":"^7.3.1"},"gitHead":"65eb65d90351deccbf578f970673c0bbe40f898f","_id":"@duhongwei/hotpack-compress@0.3.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ta1XiAD8l8DCZWssmSTFpvCtt2GHXF6F3MGtG56EBBdJmF/uDLn4+CGFciCPJtbOqRSJP/6pN7ifYNh79O76Kw==","shasum":"8d0d8cd3eeee4dc15b85757b34852a1489a149a8","tarball":"https://registry.npmjs.org/@duhongwei/hotpack-compress/-/hotpack-compress-0.3.0.tgz","fileCount":5,"unpackedSize":3637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhA+iPCRA9TVsSAnZWagAASOIP/R3XBQNl7lGrLK7ye/Am\nvRL5N7XwMtD/+Hqoqcb3lbudXjkC3ErTXkjF4XoVs6ZMDBu7CWwuAMtkAKcb\nsIYEpSVM5FCzH7cizyTBT3EOaArUJiKcHkNP12bpfsS9uGMweFGjtaBlaKKi\nVp5i4sKsibl9gtL8UIXWsiFphysIkSmIDt1F+Q0ETUAXcPKiCDwLb221W2U+\ndtYggsH0yBp2pEA0o3cqOPHJZsGZTQ0ISd3qHwo4Dig5YEHwNv4f0QJvK0Cs\nQrgMY6y4GCKcchU1h+QrWFvswAY7k7dJ0BoXt1E2wztQtrForcOCnBDHMgwi\nm9UCsyhWJC3R8aIcVYIjvKdxguKSCYwCmePBIzmVifklXOKKmv0hosUVXAvj\nvnXmeHbNaTFK2JTEpw5G6NUWxnfK6sn2HDL5FW+OxsJry6AWtWm+Zfs1LUxt\nCw3m83bcxtfFgwNvVJiJpctdKdjJGOAokU5ea6ApFiNTjG8Qk+ovTohjhJyG\nugWmT6Z/nv1D1NFOvH9sjIBxiGC4a6wTKiANHnPBsu5ijf4adYfBF8rc6iBy\nrxadJ0Us6mPKK8tZFY1o3HL06NB7Xf57Dc9a4XPWhh7rZViF+ZMBIKtea1dN\nS0iuWpS24VVKMfix5UgeWnktW4Dwxv8QFoNxDFerJsC/3ZffCnE9pYi+Y+Lr\nIwGQ\r\n=q+Wm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxvVByF2qqxFuXXsRHx0nyny5p/2EyfURIrZDFfny3/AIhAITiPraZ1h5ILiUwOfYV2sSrxS0mk03k/Fq5HzNi82kh"}]},"_npmUser":{"name":"duhongwei","email":"757318006@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hotpack-compress_0.3.0_1627646095627_0.37780638840062664"},"_hasShrinkwrap":false},"0.4.0":{"name":"@duhongwei/hotpack-compress","version":"0.4.0","type":"module","description":"hotpack plugin compress","main":"index.js","scripts":{"test":"eslint index.js"},"repository":{"type":"git","url":"git+https://github.com/duhongwei/hotpack-compress.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/duhongwei/hotpack-compress/issues"},"homepage":"https://github.com/duhongwei/hotpack-compress#readme","maintainers":[{"name":"duhongwei","email":"757318006@qq.com"}],"dependencies":{"clean-css":"^5.1.5","html-minifier":"^4.0.0","uglify-js":"^3.14.1"},"devDependencies":{"eslint":"^7.3.1"},"gitHead":"d20fffb8e5ac1332bfc1f4b43e12846ca45e2165","_id":"@duhongwei/hotpack-compress@0.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-P3C8DxujD5oSIDhc9HWlxVNW08BDq/cpb/LxVMIR0rKyAJ/Nivgxq8RUKdXCyNuW9DuK97hpuSuNloISBA7l6g==","shasum":"5cee262cd9e18dbf71986bba06e76ff629c535fc","tarball":"https://registry.npmjs.org/@duhongwei/hotpack-compress/-/hotpack-compress-0.4.0.tgz","fileCount":5,"unpackedSize":4385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHiS+CRA9TVsSAnZWagAA1I4P/iVp+04h2DnewJWDkQSd\nWz0TtfqC0SnvheeqMZfHGwlt5py5hP7oztI2C8UftM5rgqtFt5Zc00I5Pk7L\nhCPcqO2s0LXUgegRK4bgJau9KgrRSDf1BA3JFtqxnqlXqR2gAGd0dqdM8I/O\nKDeTx9YlApKLznyT17uN39WxUnkX4J9NXCTkTkqblLFMbNiazktHnZbcwj+r\nLFbA0xqI83wLENviDxOTi+KMayHVQcfAQeZOTc6pCByZ2RcqX1nG4XL3sQTe\nBfXJiwZadl89qnhDErsadGdQ61/S2yfbBZyT7dVnILOj2w0r9y9JyzDPtYj+\nR0JHT9phqQXlg65rS5Y5iwEK3bRHYo+NoYSKBhjC1/h5UfYpLzf4U0FI1kOh\nTj7kQtvESU5yhGSioYcmMyAaDakrC1AIKm/ZIKmgN2JmW33hmyGhgb9Qyxzf\ng3LSkpdHLePYgIYPGcZeO8vqNSGkRhNS+wyp3hSFo6pS+Jdld58XRDi92iHF\nJjHBqxjNfF5rV46qJHbvm9nWKxZGY+YnZ8TcHC8Dm03KUo/uFGWinw/PmVqI\nf7snQHKIh78irj5V9N6bz2ZnssnHiDvyNCSd3T0iNz3tfOTiu9SHmoRnsDl8\nuyJtMQ0XvyaNWhrqO9V1ciCI0iXyrBtfbgAzl0YGCfflK0xqQJidovnsE+bQ\nc1iF\r\n=mesU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBc+P1f197xsFMu9aRtt3zZ2eViEuyhJtorfAEKFmJPDAiAbe3Zm78oTZMvokHexjVi8QLdGEx/cxuO0ZdkL/CVuuA=="}]},"_npmUser":{"name":"duhongwei","email":"757318006@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hotpack-compress_0.4.0_1629365438331_0.5870285470830732"},"_hasShrinkwrap":false},"0.4.1":{"name":"@duhongwei/hotpack-compress","version":"0.4.1","type":"module","description":"hotpack plugin compress","main":"index.js","scripts":{"test":"eslint index.js"},"repository":{"type":"git","url":"git+https://github.com/duhongwei/hotpack-compress.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/duhongwei/hotpack-compress/issues"},"homepage":"https://github.com/duhongwei/hotpack-compress#readme","maintainers":[{"name":"duhongwei","email":"757318006@qq.com"}],"dependencies":{"clean-css":"^5.3.1","html-minifier":"^4.0.0","uglify-js":"^3.17.0"},"devDependencies":{"eslint":"^8.23.0"},"gitHead":"1c3297c5f5d028c0c3f35d3dd0120578a69c616e","_id":"@duhongwei/hotpack-compress@0.4.1","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-UlAHaaW30BLvQK554duthb2kuHPp/hXy62KF0IdIaxAyPs/+syT6hT8f8dK2H9UWLhcBhd3c8av4UVOkrJyA4w==","shasum":"c28ea9b6bf2f4570ff2da9eee9e47800b2b3135f","tarball":"https://registry.npmjs.org/@duhongwei/hotpack-compress/-/hotpack-compress-0.4.1.tgz","fileCount":5,"unpackedSize":4404,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBbg8joabxC6vgMEDQsyPY25klhJUUMlg6DybY0cdfkFAiEA5woEfG76XM7qQ7mEL4yClIj6xSifQoz6l0/uc1tyCyA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFZX5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2lg/+J00cx7Q8T+AVKltSXRoQ6PNV/3WGcZ0OY7bcWIwRkoPMNhPE\r\nOmrfMKFzS2ZQOEGmOskja/nv7dVL1YSIcHnHqKmFRaQqgf90bkeAEU1lMZn4\r\nsmqDhxS/Q2Ayvl9j7nWTWlFSMozqe0Peae4nrexXquYEvcGS93aSDZakdMft\r\nF/i9JUH5IrSL+u75FqcmbcWfCe95T2UJSuXqGzLiplY84Vlovey8BgSYMCbD\r\nYm6Pxa4mi/MFcvfLPs1BDnj1ZZfma2kpoZ8la6driGIUXatRHjA+vxU0D1Gv\r\n4/fjD98ttM02ay7RP6QGAb+bccYK7OJjz/lXk85gQgdaGWq7Q0sQEBaVcY+q\r\nzjkJUl4L3VL7U/fPOlbR8fXCYQi2vCir06lUfbLBeTmvctgWMppJjD5aNkTo\r\n1Lz7JBIYr8P4d5eQu3toWPaFFMjE01HqumzLrEHyuqeT7RLdnE8Cbr0rAhfs\r\n/LwVAkSNbSJJvaEh9/AV2y1f0HdxpxNbb5CzoBzW+aPk4ow/gx/0y3pOpeH1\r\ndqJJVHgFFRGIBUJCAHhhnBJbAVk4xbQKk2si4rxyhq0c4Of9ijbwi+wPTdpY\r\nB9CK/2XQJdeAL7lhLx03Z+LElXlCI/kdeUz7rlqcHG523hlkDqQzRHC6FbRy\r\nXHqcOHK4K9WUO6lssKefbLMKy6iqhRNA4ZQ=\r\n=JUsZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"duhongwei","email":"757318006@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hotpack-compress_0.4.1_1662359033488_0.04393691707202563"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-30T11:54:55.587Z","0.3.0":"2021-07-30T11:54:55.814Z","modified":"2022-09-05T06:23:53.727Z","0.4.0":"2021-08-19T09:30:38.498Z","0.4.1":"2022-09-05T06:23:53.654Z"},"maintainers":[{"name":"duhongwei","email":"757318006@qq.com"}],"description":"hotpack plugin compress","homepage":"https://github.com/duhongwei/hotpack-compress#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/duhongwei/hotpack-compress.git"},"bugs":{"url":"https://github.com/duhongwei/hotpack-compress/issues"},"license":"MIT","readme":"# Hotpack-compress\n[hotpack](https://github.com/duhongwei/hotpack) plugin compress\n\nContains three modules\n\n- [uglify-js](https://github.com/mishoo/UglifyJS#readme)\n- [html-minifier](https://github.com/kangax/html-minifier)\n- [clean-css](https://github.com/clean-css/clean-css)\n\n## Usage\n```bash\nnpm install --save-dev @duhongwei/hotpack-compress\n```\n```js\nimport compress from '@duhongwei/hotpack-compress'\n\nexport default {\n  plugin: [\n    {\n      name: 'compress',\n      use: compress,\n      opt:{\n        //Optional, default is {},options of uglify-js\n        js:{},\n        //Optional, default is { removeAttributeQuotes: true,collapseWhitespace: true }\n        html:{  removeAttributeQuotes: true,collapseWhitespace: true},\n        //Optional, default is {compatibility: 'ie9' },options of clean-css \n        css:{compatibility: 'ie9'},\n      }\n    }\n  ]\n}\n```\n","readmeFilename":"README.md"}