react-code-dataset / next.js /packages /next /src /bundles /cssnano-simple /cssnano-preset-simple.js
Download next.js/packages/next/src/bundles/cssnano-simple/cssnano-preset-simple.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/bundles/cssnano-simple/cssnano-preset-simple.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/bundles/cssnano-simple/cssnano-preset-simple.js
-
curl -L -o cssnano-preset-simple.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/bundles/cssnano-simple/cssnano-preset-simple.js
592 Bytes
| // Originated from https://github.com/Timer/cssnano-preset-simple/blob/master/src/index.js | |
| /** | |
| * We will not try to override "postcss-svgo" here. Instead we will alias "postcss-svgo" to a stub | |
| * plugin (located at "next/dist/compiled/postcss-plugin-stub-for-cssnano-simple") during pre-compilation | |
| */ | |
| module.exports = function (opts = {}) { | |
| const options = Object.assign( | |
| {}, | |
| { cssDeclarationSorter: { exclude: true }, calc: { exclude: true } }, | |
| opts | |
| ) | |
| // eslint-disable-next-line import/no-extraneous-dependencies | |
| return require('cssnano-preset-default')(options) | |
| } | |