Skip to content

Commit

Permalink
fix: use postcss-preset-env for processing new CSS syntax (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin authored Jan 4, 2024
1 parent d5b9cc8 commit 16d8355
Show file tree
Hide file tree
Showing 4 changed files with 1,600 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apify-docs-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"access": "public"
},
"dependencies": {
"@apify/docs-search-modal": "^1.0.24",
"@apify/docs-search-modal": "^1.0.25",
"@docusaurus/theme-common": "^2.4.1",
"@stackql/docusaurus-plugin-hubspot": "^1.1.0",
"axios": "^1.4.0",
Expand Down
8 changes: 8 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const postcssPreset = require('postcss-preset-env');
const { config } = require('./apify-docs-theme');
const { externalLinkProcessor } = require('./tools/utils/externalLink');
const { collectSlugs } = require('./tools/utils/collectSlugs');
Expand Down Expand Up @@ -91,6 +92,13 @@ module.exports = {
sidebarPath: require.resolve('./sources/academy/sidebars.js'),
},
],
() => ({
name: 'new-css-syntax',
configurePostCss(options) {
options.plugins.push(postcssPreset); // allow newest CSS syntax
return options;
},
}),
// TODO this should be somehow computed from all the external sources
// [
// '@docusaurus/plugin-client-redirects',
Expand Down
Loading

0 comments on commit 16d8355

Please sign in to comment.