summaryrefslogtreecommitdiff
path: root/node_modules/rucksack-css/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rucksack-css/index.js')
-rw-r--r--node_modules/rucksack-css/index.js82
1 files changed, 0 insertions, 82 deletions
diff --git a/node_modules/rucksack-css/index.js b/node_modules/rucksack-css/index.js
deleted file mode 100644
index 3368cc40..00000000
--- a/node_modules/rucksack-css/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-
-const postcss = require('postcss');
-
-const PLUGINS = [
- {
- option: 'alias',
- module: require('postcss-alias')
- },
- {
- option: 'responsiveType',
- module: require('postcss-responsive-type')
- },
- {
- option: 'shorthandPosition',
- module: require('postcss-position')
- },
- {
- option: 'quantityQueries',
- module: require('postcss-quantity-queries')
- },
- {
- option: 'inputPseudo',
- module: require('postcss-input-style')
- },
- {
- option: 'clearFix',
- module: require('postcss-clearfix')
- },
- {
- option: 'fontPath',
- module: require('postcss-fontpath')
- },
- {
- option: 'hexRGBA',
- module: require('postcss-hexrgba')
- },
- {
- option: 'easings',
- module: require('postcss-easings')
- },
- {
- option: 'fallbacks',
- module: require('laggard')
- },
- {
- option: 'autoprefixer',
- module: require('autoprefixer')
- },
- {
- option: 'reporter',
- module: require('postcss-reporter')
- }
- ],
- DEFAULTS = {
- alias: true,
- responsiveType: true,
- shorthandPosition: true,
- quantityQueries: true,
- inputPseudo: true,
- clearFix: true,
- fontPath: true,
- hexRGBA: true,
- easings: true,
- autoprefixer: false,
- fallbacks: false,
- reporter: false
- };
-
-// Export plugin bundle
-module.exports = postcss.plugin('rucksack', opts => {
- opts = opts || {};
-
- let config = Object.assign({}, DEFAULTS, opts),
- bundle = postcss();
-
- PLUGINS.forEach(plugin => {
- config[plugin.option] && bundle.use(plugin.module);
- });
-
- return bundle;
-}); \ No newline at end of file