MCPcopy Create free account
hub / github.com/bridge-codes/bridge / configurePostCss

Function configurePostCss

www/docusaurus.config.js:69–79  ·  view source on GitHub ↗
(postcssOptions)

Source from the content-addressed store, hash-verified

67 return {
68 name: 'docusaurus-tailwindcss',
69 configurePostCss(postcssOptions) {
70 // Appends TailwindCSS, AutoPrefixer & CSSNano.
71 /* eslint-disable @typescript-eslint/no-var-requires */
72 postcssOptions.plugins.push(require('tailwindcss'));
73 postcssOptions.plugins.push(require('autoprefixer'));
74 if (process.env.NODE_ENV === 'production') {
75 postcssOptions.plugins.push(require('cssnano'));
76 }
77 /* eslint-enable @typescript-eslint/no-var-requires */
78 return postcssOptions;
79 },
80 };
81 },
82 ],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected