~scrumplex/website

12b546c1ecc6085a250690c89e724d4a4a2c19ae — Sefa Eyeoglu 2 months ago b940747
feat: enable compression on compile-time
3 files changed, 26 insertions(+), 0 deletions(-)

A .parcelrc
M package.json
M yarn.lock
A .parcelrc => .parcelrc +10 -0
@@ 0,0 1,10 @@
{
  "extends": ["@parcel/config-default"],
  "compressors": {
    "*.{html,css,js,svg,map}": [
      "...",
      "@parcel/compressor-gzip",
      "@parcel/compressor-brotli"
    ]
  }
}

M package.json => package.json +2 -0
@@ 21,6 21,8 @@
    "tsparticles": "^1.37.3"
  },
  "devDependencies": {
    "@parcel/compressor-brotli": "^2.0.1",
    "@parcel/compressor-gzip": "^2.0.1",
    "@parcel/transformer-pug": "^2.0.1",
    "@parcel/transformer-sass": "^2.0.1",
    "eslint": "^8.2.0",

M yarn.lock => yarn.lock +14 -0
@@ 368,6 368,20 @@
    slice-ansi "^4.0.0"
    string-width "^4.2.0"

"@parcel/compressor-brotli@^2.0.1":
  version "2.0.1"
  resolved "https://registry.yarnpkg.com/@parcel/compressor-brotli/-/compressor-brotli-2.0.1.tgz#ea56a959c56a3765058e9bbab2b4c866104b61c4"
  integrity sha512-p4wnjefu43rtgJye/sxNFE9k2H/9MEKXb0oGjQh5QAiSIOb9XUiDuXuzSEWuMeAUidGL//ENZE20hNMBI64/+w==
  dependencies:
    "@parcel/plugin" "^2.0.1"

"@parcel/compressor-gzip@^2.0.1":
  version "2.0.1"
  resolved "https://registry.yarnpkg.com/@parcel/compressor-gzip/-/compressor-gzip-2.0.1.tgz#35352fb92bd9cbb2a2330863cd9cf00ae23043d4"
  integrity sha512-y5rEi3sa0fRksfT6HJZn1G4yHjW0yCJYxe+2NSyJAv97rvVos58ZOWRMFIa8NmN2Rum20gs/LW7wH8vfz1LeVA==
  dependencies:
    "@parcel/plugin" "^2.0.1"

"@parcel/compressor-raw@^2.0.1":
  version "2.0.1"
  resolved "https://registry.yarnpkg.com/@parcel/compressor-raw/-/compressor-raw-2.0.1.tgz#faa2586b0b569f9cf34c3c40206b7dd35fb8255c"