Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'postcss.js')
-rw-r--r--postcss.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/postcss.js b/postcss.js
index 9e45a5e..28e9bc7 100644
--- a/postcss.js
+++ b/postcss.js
@@ -14,7 +14,7 @@ const RfsClass = require('./lib/rfs.js');
const DISABLE_RFS_SELECTOR = '.disable-rfs';
const ENABLE_RFS_SELECTOR = '.enable-rfs';
-module.exports = postcss.plugin('postcss-rfs', opts => {
+module.exports = (opts = {}) => {
const rfs = new RfsClass(opts);
// Get the options merged with defaults
@@ -148,4 +148,6 @@ module.exports = postcss.plugin('postcss-rfs', opts => {
}
});
};
-});
+};
+
+module.exports.postcss = true;