Add autoprefixer and cssnano support

This commit is contained in:
Peter deHaan 2017-08-03 17:07:40 -07:00
parent c4751842fe
commit 38746078ed
7 changed files with 4392 additions and 500 deletions

15
postcss.config.js Normal file
View file

@ -0,0 +1,15 @@
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const mqpacker = require('css-mqpacker');
const conf = require('./server/config');
const options = {
plugins: [autoprefixer, mqpacker, cssnano]
};
if (conf.env === 'development') {
options.map = { inline: true };
}
module.exports = options;