Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build-config): allow to custom modules by process.env.SWIPER_BUILD_MODULES #6043

Merged

Conversation

0x0a0d
Copy link
Contributor

@0x0a0d 0x0a0d commented Sep 8, 2022

I need to build a custom bundle swiperjs and I've followed instruction here.
I want my swiper being up to date with master so I point ./swiper as submodule of nolimits4web/swiper#master.
Problem that if I change var modules in file build-config.js to build customize module, it looks good except that I can not commit changes of build-config.js
So I created this pull that can help me tell builder which modules should build by setup an environment variable SWIPER_BUILD_MODULES that includes build modules joined by comma ,

SWIPER_BUILD_MODULES=navigation,pagination,lazy npm run build:bundle

@nolimits4web nolimits4web merged commit b3c51c5 into nolimits4web:master Oct 6, 2022
@nolimits4web
Copy link
Owner

Merged, thanks!

@0x0a0d 0x0a0d deleted the feat_custom_build_modules_by_env branch December 3, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants