From c06f7ee0a40255214c477e13d9b956a7e07c2900 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:05:55 +0800 Subject: postcss,(plugins): nanocss, postcss-preset-env --- node_modules/cssnano-utils/src/rawCache.js | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 node_modules/cssnano-utils/src/rawCache.js (limited to 'node_modules/cssnano-utils/src/rawCache.js') diff --git a/node_modules/cssnano-utils/src/rawCache.js b/node_modules/cssnano-utils/src/rawCache.js new file mode 100644 index 00000000..42a320e0 --- /dev/null +++ b/node_modules/cssnano-utils/src/rawCache.js @@ -0,0 +1,34 @@ +'use strict'; + +/** + * @type {import('postcss').PluginCreator} + * @return {import('postcss').Plugin} + */ +function pluginCreator() { + return { + postcssPlugin: 'cssnano-util-raw-cache', + /** + * @param {import('postcss').Root} css + * @param {{result: import('postcss').Result & {root: {rawCache?: any}}}} arg + */ + OnceExit(css, { result }) { + result.root.rawCache = { + colon: ':', + indent: '', + beforeDecl: '', + beforeRule: '', + beforeOpen: '', + beforeClose: '', + beforeComment: '', + after: '', + emptyBody: '', + commentLeft: '', + commentRight: '', + }; + }, + }; +} + +pluginCreator.postcss = true; + +module.exports = pluginCreator; -- cgit v1.2.3