Date: 2026-03-24
Tool: Playwright (Chromium, headless)
| Production (current) | Candidate | |
|---|---|---|
| URL | 030c2a27bdaf.ngrok.app | 5cc2bb9fdebc.ngrok.app |
Generate RequireJS Optimizer configuration for Magento 2 website based on real-world usage.
config-gen is packaged as a single binary (currently only osx) to enable
easy usage, just check the releases
page and download the latest.
Generate RequireJS Optimizer configuration for Magento 2 website.
config-gen is packaged as a single binary (currently only osx) to enable
easy usage, just check the releases
page and download the latest.
| struct AppState { | |
| config: Arc<Mutext<Vec<String>>> | |
| } | |
| /// | |
| /// these handlers can be running on any number of threads | |
| /// | |
| fn handler(req: &HttpRequest<AppState>) -> Box<Future<Item = HttpResponse, Error = ()>> { | |
| // clone the Arc here so it can be safely moved into the closure |
| impl M2PresetOptions { | |
| pub fn get_opts(prog_config: ProgramConfig) -> Option<M2PresetOptions> { | |
| serde_yaml::from_value(prog_config.get_opts("m2")?).ok()? | |
| } | |
| } |
| /// | |
| /// A simple way to apply both a predicate | |
| /// and default value when dealing with an option. | |
| /// | |
| fn is_legal(age: Option<usize>) -> bool { | |
| age.map(|x| x >= 18).unwrap_or(false) | |
| } |
| version: '2' | |
| services: | |
| nginx: | |
| volumes: | |
| - .docker/certs:/etc/letsencrypt | |
| env_file: | |
| - ./.docker/local.env | |
| php: |
| <!-- app/code/Simmi/Theme/view/frontend/web/template/account.html --> | |
| <div data-bind="text: loadingText"></div> |
| <div class="global-underlay" | |
| data-bind=" | |
| css: {'global-underlay--active': state().underlayActive}, | |
| click: close | |
| " | |
| ></div> | |
| <div class="global-overlay" | |
| data-bind=" | |
| css: { | |
| 'global-overlay--active': state().overlayActive, |