Blame view

node_modules/vue-loader/lib/style-compiler/plugins/trim.js 226 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
  const postcss = require('postcss')
  
  module.exports = postcss.plugin('trim', opts => css => {
    css.walk(({ type, raws }) => {
      if (type === 'rule' || type === 'atrule') {
        raws.before = raws.after = '\n'
      }
    })
  })