Skip to content

Automattic/swiper

 
 

Repository files navigation

Fork of the Swiper.js Repo for A8C Specific Builds

The purpose of this fork is to provide a location to house Automattic specific build scripts for the Swiper.js library.

Currently custom builds are only used by the Jetpack Carousel module.

Using a custom build means we can shave approximately 100KB off the uncompressed library bundles.

Creating a new build for Jetpack Carousel

  • Check out this repo
  • Run npm install
  • Checkout the jetpack-build branch and make sure the latest release changes you need are merged into this branch, while making sure the changes to the scripts/build-config.js file and this ReadMe are maintained.
  • Run npm run build:prod
  • Add the following comment to the top of both files:
/* eslint-disable */
/* DO NOT EDIT - This file is automatically generated. See readme.md */
  • Copy package/swiper-bundle.js and package/swiper-bundle.css to jetpack/projects/plugins/jetpack/modules/carousel

Todo

  • Automate this process somehow

About

Most modern mobile touch slider with hardware accelerated transitions

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.5%
  • TypeScript 10.1%
  • SCSS 2.8%
  • HTML 2.5%
  • Less 2.4%
  • Svelte 1.8%
  • Other 0.9%