Download wp-calypso/apps/help-center/postcss.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 993 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/help-center/postcss.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/help-center/postcss.config.js
-
curl -L -o postcss.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/help-center/postcss.config.js
993 Bytes
| module.exports = { | |
| plugins: [ | |
| require( 'postcss-prefix-selector' )( { | |
| prefix: '.help-center', | |
| transform: function ( prefix, selector, prefixedSelector, path ) { | |
| // The search component has very generic class that causes many bugs. | |
| if ( path.includes( 'search/style.scss' ) ) { | |
| return selector === '.search' ? prefixedSelector : selector; | |
| } | |
| // The card component has very generic class that causes many bugs. | |
| if ( path.includes( 'card/style.scss' ) ) { | |
| return selector === '.card' ? prefixedSelector : selector; | |
| } | |
| // The count component has very generic class that causes many bugs. | |
| if ( path.includes( 'count/style.scss' ) ) { | |
| return selector === '.count' ? prefixedSelector : selector; | |
| } | |
| // Replace :root with .help-center to avoid stylizing the document and scope all the help center variables to the help center. | |
| if ( selector === ':root' ) { | |
| return '.help-center'; | |
| } | |
| return selector; | |
| }, | |
| } ), | |
| ], | |
| }; | |