summaryrefslogtreecommitdiff
path: root/node_modules/oldie/index.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-31 15:37:35 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-31 15:37:35 +0800
commitd5f14083061f2ce6a42313188443a42e30796320 (patch)
treecc6a9889e08b29595a76a33b9e7b4ef84866468b /node_modules/oldie/index.js
parentb1a6ea021f29f182b62f9f81024a3d8ac8621b7f (diff)
added make browserlist(autoprefixer) work fixed
Diffstat (limited to 'node_modules/oldie/index.js')
-rw-r--r--node_modules/oldie/index.js71
1 files changed, 0 insertions, 71 deletions
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;
-});