Skip to content

Commit ada7740

Browse files
Merge pull request #316 from bitlogic/SBIT-474
Sbit 474 - agregado gatsby-plugin-purgecss
2 parents 33e90f7 + d05d5ca commit ada7740

File tree

5 files changed

+90
-4
lines changed

5 files changed

+90
-4
lines changed

gatsby-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ module.exports = {
163163
],
164164
},
165165
},
166+
{
167+
resolve: `gatsby-plugin-purgecss`,
168+
options: {
169+
printRejected: true, // Muestra las clases eliminadas en la consola
170+
develop: false, // PurgeCSS solo se ejecuta en producción
171+
},
172+
},
166173
"gatsby-plugin-offline",
167174
`gatsby-plugin-sass`,
168175
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
"bootstrap": "^5.1.0",
1515
"gatsby": "^4.6.0",
1616
"gatsby-background-image": "^1.5.3",
17-
"gatsby-plugin-google-tagmanager": "^4.25.0",
1817
"gatsby-plugin-canonical-urls": "^4.22.0",
18+
"gatsby-plugin-google-tagmanager": "^4.25.0",
1919
"gatsby-plugin-image": "^2.6.0",
2020
"gatsby-plugin-manifest": "^4.6.0",
2121
"gatsby-plugin-offline": "^5.6.0",
22+
"gatsby-plugin-purgecss": "^6.2.1",
2223
"gatsby-plugin-robots-txt": "1.7.1",
2324
"gatsby-plugin-sass": "^5.6.0",
2425
"gatsby-plugin-sharp": "^4.6.0",

src/components/videoBackground/VideoBackground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,4 @@ VideoBackground.propTypes = {
244244
}),
245245
}
246246

247-
export default VideoBackground
247+
export default VideoBackground

src/components/videoBackground/videoBackground.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676
padding: 32px;
7777
}
7878
}
79-
}
79+
}

yarn.lock

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,6 +3850,11 @@ commander@^7.2.0:
38503850
resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
38513851
integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
38523852

3853+
commander@^8.0.0:
3854+
version "8.3.0"
3855+
resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
3856+
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
3857+
38533858
common-tags@1.8.2, common-tags@^1.8.0, common-tags@^1.8.2:
38543859
version "1.8.2"
38553860
resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6"
@@ -5604,6 +5609,15 @@ fs-extra@^10.0.0, fs-extra@^10.1.0:
56045609
jsonfile "^6.0.1"
56055610
universalify "^2.0.0"
56065611

5612+
fs-extra@^11.1.0:
5613+
version "11.2.0"
5614+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b"
5615+
integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==
5616+
dependencies:
5617+
graceful-fs "^4.2.0"
5618+
jsonfile "^6.0.1"
5619+
universalify "^2.0.0"
5620+
56075621
fs-extra@^4.0.2:
56085622
version "4.0.3"
56095623
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94"
@@ -5910,6 +5924,16 @@ gatsby-plugin-page-creator@^4.25.0:
59105924
globby "^11.1.0"
59115925
lodash "^4.17.21"
59125926

5927+
gatsby-plugin-purgecss@^6.2.1:
5928+
version "6.2.1"
5929+
resolved "https://registry.yarnpkg.com/gatsby-plugin-purgecss/-/gatsby-plugin-purgecss-6.2.1.tgz#a2f8b3a128a46c161bfd3b1c045c20709da4a964"
5930+
integrity sha512-cW84RSm0OfrVZ3p9Sq3vHS7kVblMtuG5u2qZIRFYHJa2NVsZys9N6BMERGNWM3tKlcpOmhcl1tuK8OwvQTyGcw==
5931+
dependencies:
5932+
fs-extra "^11.1.0"
5933+
loader-utils "^3.2.1"
5934+
merge-anything "^5.1.4"
5935+
purgecss "^4.1.3"
5936+
59135937
gatsby-plugin-robots-txt@1.7.1:
59145938
version "1.7.1"
59155939
resolved "https://registry.yarnpkg.com/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.7.1.tgz#f956729e34f6269cc314352e9ef1cf7b4c515a68"
@@ -6407,7 +6431,7 @@ glob-to-regexp@^0.4.1:
64076431
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
64086432
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
64096433

6410-
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.6, glob@^7.2.3:
6434+
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.6, glob@^7.1.7, glob@^7.2.3:
64116435
version "7.2.3"
64126436
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
64136437
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -7417,6 +7441,11 @@ is-weakset@^2.0.3:
74177441
call-bind "^1.0.7"
74187442
get-intrinsic "^1.2.4"
74197443

7444+
is-what@^4.1.8:
7445+
version "4.1.16"
7446+
resolved "https://registry.yarnpkg.com/is-what/-/is-what-4.1.16.tgz#1ad860a19da8b4895ad5495da3182ce2acdd7a6f"
7447+
integrity sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==
7448+
74207449
is-windows@^1.0.1:
74217450
version "1.0.2"
74227451
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
@@ -7737,6 +7766,11 @@ loader-utils@^3.2.0:
77377766
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.1.tgz#4fb104b599daafd82ef3e1a41fb9265f87e1f576"
77387767
integrity sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==
77397768

7769+
loader-utils@^3.2.1:
7770+
version "3.3.1"
7771+
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.3.1.tgz#735b9a19fd63648ca7adbd31c2327dfe281304e5"
7772+
integrity sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==
7773+
77407774
locate-path@^3.0.0:
77417775
version "3.0.0"
77427776
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e"
@@ -8170,6 +8204,13 @@ meow@^7.0.1:
81708204
type-fest "^0.13.1"
81718205
yargs-parser "^18.1.3"
81728206

8207+
merge-anything@^5.1.4:
8208+
version "5.1.7"
8209+
resolved "https://registry.yarnpkg.com/merge-anything/-/merge-anything-5.1.7.tgz#94f364d2b0cf21ac76067b5120e429353b3525d7"
8210+
integrity sha512-eRtbOb1N5iyH0tkQDAoQ4Ipsp/5qSR79Dzrz8hEPxRX10RWWR/iQXdoKmBSRCThY1Fh5EhISDtpSc93fpxUniQ==
8211+
dependencies:
8212+
is-what "^4.1.8"
8213+
81738214
merge-descriptors@1.0.1:
81748215
version "1.0.1"
81758216
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
@@ -9070,6 +9111,11 @@ picocolors@^1.0.0, picocolors@^1.0.1:
90709111
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1"
90719112
integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
90729113

9114+
picocolors@^1.1.1:
9115+
version "1.1.1"
9116+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
9117+
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
9118+
90739119
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
90749120
version "2.3.1"
90759121
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
@@ -9336,6 +9382,14 @@ postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector
93369382
cssesc "^3.0.0"
93379383
util-deprecate "^1.0.2"
93389384

9385+
postcss-selector-parser@^6.0.6:
9386+
version "6.1.2"
9387+
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de"
9388+
integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==
9389+
dependencies:
9390+
cssesc "^3.0.0"
9391+
util-deprecate "^1.0.2"
9392+
93399393
postcss-svgo@^5.1.0:
93409394
version "5.1.0"
93419395
resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d"
@@ -9382,6 +9436,15 @@ postcss@^8.2.15, postcss@^8.2.9, postcss@^8.3.11:
93829436
picocolors "^1.0.0"
93839437
source-map-js "^1.2.0"
93849438

9439+
postcss@^8.3.5:
9440+
version "8.4.49"
9441+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.49.tgz#4ea479048ab059ab3ae61d082190fabfd994fe19"
9442+
integrity sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==
9443+
dependencies:
9444+
nanoid "^3.3.7"
9445+
picocolors "^1.1.1"
9446+
source-map-js "^1.2.1"
9447+
93859448
prebuild-install@^7.1.1:
93869449
version "7.1.2"
93879450
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.2.tgz#a5fd9986f5a6251fbc47e1e5c65de71e68c0a056"
@@ -9543,6 +9606,16 @@ pupa@^2.1.1:
95439606
dependencies:
95449607
escape-goat "^2.0.0"
95459608

9609+
purgecss@^4.1.3:
9610+
version "4.1.3"
9611+
resolved "https://registry.yarnpkg.com/purgecss/-/purgecss-4.1.3.tgz#683f6a133c8c4de7aa82fe2746d1393b214918f7"
9612+
integrity sha512-99cKy4s+VZoXnPxaoM23e5ABcP851nC2y2GROkkjS8eJaJtlciGavd7iYAw2V84WeBqggZ12l8ef44G99HmTaw==
9613+
dependencies:
9614+
commander "^8.0.0"
9615+
glob "^7.1.7"
9616+
postcss "^8.3.5"
9617+
postcss-selector-parser "^6.0.6"
9618+
95469619
qs@6.11.0:
95479620
version "6.11.0"
95489621
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
@@ -10670,6 +10743,11 @@ source-list-map@^2.0.0:
1067010743
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af"
1067110744
integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==
1067210745

10746+
source-map-js@^1.2.1:
10747+
version "1.2.1"
10748+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
10749+
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
10750+
1067310751
source-map-resolve@^0.5.2:
1067410752
version "0.5.3"
1067510753
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a"

0 commit comments

Comments
 (0)