Skip to content

Commit

Permalink
removes use of mobile preview plugin for apos build (#4823)
Browse files Browse the repository at this point in the history
* removes use of mobile preview plugin for apos build
  • Loading branch information
ValJed authored Dec 18, 2024
1 parent 1038a65 commit 7bdfeb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Fixes broken widget preview URL when the image is overridden (module improve) and external build module is registered.
* Inject dynamic custom bundle CSS when using external build module with no CSS entry point.
* Range field now correctly takes 0 into account.
* Apos style does not go through `postcss-viewport-to-container-toggle` plugin anymore to avoid UI bugs.

### Adds

Expand Down
9 changes: 0 additions & 9 deletions modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
const postcssViewportToContainerToggle = require('postcss-viewport-to-container-toggle');

module.exports = (options, apos) => {
const postcssPlugins = [
...apos.asset.options.breakpointPreviewMode?.enable === true ? [
postcssViewportToContainerToggle({
modifierAttr: 'data-breakpoint-preview-mode',
debug: apos.asset.options.breakpointPreviewMode?.debug === true,
transform: apos.asset.options.breakpointPreviewMode?.transform || null
})
] : [],
'autoprefixer',
{}
];
Expand Down

0 comments on commit 7bdfeb8

Please sign in to comment.