File tree Expand file tree Collapse file tree 4 files changed +12366
-1
lines changed
src/components/videoBackground Expand file tree Collapse file tree 4 files changed +12366
-1
lines changed Original file line number Diff line number Diff line change 1+ require ( "dotenv" ) . config ( {
2+ path : `.env` , // Asegúrate de que apunte al archivo correcto
3+ } ) ;
4+
15module . exports = {
26 trailingSlash : "always" ,
37 siteMetadata : {
@@ -163,6 +167,13 @@ module.exports = {
163167 ] ,
164168 } ,
165169 } ,
170+ {
171+ resolve : `gatsby-plugin-purgecss` ,
172+ options : {
173+ printRejected : true , // Muestra las clases eliminadas en la consola
174+ develop : false , // PurgeCSS solo se ejecuta en producción
175+ } ,
176+ } ,
166177 "gatsby-plugin-offline" ,
167178 `gatsby-plugin-sass` ,
168179 ] ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ const VideoBackground = ({ data }) => {
116116 const [ isIntersecting , setIsIntersecting ] = useState ( false )
117117 const videoRef = useRef ( null )
118118
119-
120119 const pausePlay = ( ) => {
121120 if ( isVideoPause ) {
122121 videoRef ?. current ?. play ( )
You can’t perform that action at this time.
0 commit comments