Skip to content

Commit

Permalink
Pro 6901 mobile preview broken UI (#15)
Browse files Browse the repository at this point in the history
* uses postcss plugin for mobile preview only for public build
  • Loading branch information
ValJed authored Dec 18, 2024
1 parent 40554f4 commit 3191528
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## UNRELESED

### Fixes

* Uses `postcss-viewport-to-container-toggle` plugin only on `public` builds to avoid breaking apos UI out of `apos-refreshable`.

## 1.0.0-beta.2 (2024-11-20)

### Adds
Expand Down
6 changes: 3 additions & 3 deletions lib/internals.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,10 +1004,10 @@ module.exports = (self) => {
} = await postcssrc({}, self.apos.rootDir);
postcssPlugins.push(...plugins);
} catch (err) { /* Project has no postcss config file */ }
}

if (enablePostcssViewport) {
postcssPlugins.push(postcssViewportToContainerToggle(postcssViewportOptions));
if (enablePostcssViewport) {
postcssPlugins.push(postcssViewportToContainerToggle(postcssViewportOptions));
}
}

if (id === 'apos') {
Expand Down

0 comments on commit 3191528

Please sign in to comment.