Permalink
Browse files

Add remove-root plugin

  • Loading branch information...
1 parent a18a3a1 commit 47edccb33c62d303d67ad4ccfbee58bbc5ce226f @jxnblk jxnblk committed Feb 13, 2016
Showing with 2 additions and 12 deletions.
  1. +1 −0 package.json
  2. +1 −12 postcss.config.js
View
@@ -56,6 +56,7 @@
"postcss-discard-comments": "^1.1.1",
"postcss-import": "^7.1.3",
"postcss-loader": "^0.8.0",
+ "postcss-remove-root": "0.0.2",
"postcss-reporter": "^1.3.0",
"style-loader": "^0.13.0",
"webpack": "^1.12.12"
View
@@ -1,18 +1,6 @@
var postcss = require('postcss')
-// Not currently implemented
-var removeRoot = postcss.plugin('remove-root', function(opts) {
- opts = opts || {}
- return function(root) {
- root.eachRule(function(rule) {
- if (rule.selector === ':root') {
- rule.removeSelf()
- }
- })
- }
-})
-
module.exports = {
use: [
'postcss-import',
@@ -21,6 +9,7 @@ module.exports = {
'postcss-calc',
'cssstats',
'postcss-discard-comments',
+ 'postcss-remove-root',
'autoprefixer',
'postcss-reporter'
],

0 comments on commit 47edccb

Please sign in to comment.