Blame view

node_modules/mpvue-loader/lib/style-compiler/plugins/trim.js 281 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
  var postcss = require('postcss')
  
  module.exports = postcss.plugin('trim', function (opts) {
    return function (css) {
      css.walk(function (node) {
        if (node.type === 'rule' || node.type === 'atrule') {
          node.raws.before = node.raws.after = '\n'
        }
      })
    }
  })