vant/build/utils/postcss_pipe.js
张敏 8cdbb0fdd5 修复:添加reset.css和cell加上right-icon的slot (#27)
* add reset css and remove postcss-salad

* cell add right icon slog
2017-05-09 11:45:33 +08:00

32 lines
788 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var config = {
'bem': {
'shortcuts': {'component': 'b', 'modifier': 'm', 'descendent': 'e'},
'separators': {'descendent': '__', 'modifier': '--'}
}
};
var reset = require('postcss-css-reset')();
// https://github.com/trysound/postcss-easy-import
var partialImport = require('postcss-easy-import')();
// 这不是bem虽然名字叫bem其实它是suit
// https://github.com/saladcss/saladcss-bem
var bem = require('saladcss-bem')(config.bem);
// https://github.com/jonathantneal/precss
var precss = require('precss')();
// https://github.com/postcss/autoprefixer
var autoprefixer = require('autoprefixer')();
module.exports = function (webpack) {
// 顺序很重要
return [
partialImport,
bem,
precss,
autoprefixer,
reset
];
};