From d5f14083061f2ce6a42313188443a42e30796320 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 31 Oct 2023 15:37:35 +0800 Subject: added make browserlist(autoprefixer) work fixed --- node_modules/oldie/index.js | 71 --------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 node_modules/oldie/index.js (limited to 'node_modules/oldie/index.js') diff --git a/node_modules/oldie/index.js b/node_modules/oldie/index.js deleted file mode 100644 index 557b2d5c..00000000 --- a/node_modules/oldie/index.js +++ /dev/null @@ -1,71 +0,0 @@ -var assign = require('object-assign'); -var postcss = require('postcss'); - -var processors = [ - { - plugin: require('postcss-calc'), - namespace: 'calc', - defaults: {} - }, - { - plugin: require('postcss-unmq'), - namespace: 'media', - defaults: {} - }, - { - plugin: require('postcss-unroot'), - namespace: 'root', - defaults: {} - }, - { - plugin: require('postcss-unnth'), - namespace: 'nth', - defaults: {} - }, - { - plugin: require('postcss-unnot'), - namespace: 'not', - defaults: {} - }, - { - plugin: require('postcss-unopacity'), - namespace: 'opacity', - defaults: {} - }, - { - plugin: require('postcss-unrgba'), - namespace: 'rgba', - defaults: {} - }, - { - plugin: require('pixrem'), - namespace: 'rem', - defaults: { - replace: true - } - }, - { - plugin: require('postcss-pseudoelements'), - namespace: 'pseudo', - defaults: {} - } -]; - -module.exports = postcss.plugin('oldie', function (opts) { - opts = assign({}, opts); - - var instance = postcss(); - - processors.forEach(function (processor) { - var namespaceOptions = processor.namespace in opts ? opts[processor.namespace] : opts; - var processorOptions = {}; - - processorOptions = assign({}, processor.defaults, namespaceOptions); - - if (namespaceOptions && !processorOptions.disable) { - instance.use(processor.plugin(processorOptions)); - } - }); - - return instance; -}); -- cgit v1.2.3