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.
- Check out this repo
- Run
npm install - Checkout the
jetpack-buildbranch and make sure the latest release changes you need are merged into this branch, while making sure the changes to thescripts/build-config.jsfile 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.jsandpackage/swiper-bundle.csstojetpack/projects/plugins/jetpack/modules/carousel
- Automate this process somehow