send/postcss.config.js

16 lines
335 B
JavaScript
Raw Normal View History

2017-08-04 00:07:40 +00:00
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const mqpacker = require('css-mqpacker');
const config = require('./server/config');
2017-08-04 00:07:40 +00:00
const options = {
plugins: [autoprefixer, mqpacker, cssnano]
};
if (config.env === 'development') {
2017-08-04 00:07:40 +00:00
options.map = { inline: true };
}
module.exports = options;