2020-05-06 07:02:56 -07:00
|
|
|
const packageConfig = require('./package.json');
|
2020-03-13 01:46:11 -07:00
|
|
|
const postcssPresetEnv = require('postcss-preset-env');
|
2020-04-25 05:47:20 -07:00
|
|
|
const autoprefixer = require('autoprefixer');
|
2020-02-28 06:36:42 -07:00
|
|
|
const cssnano = require('cssnano');
|
|
|
|
|
|
|
|
const config = () => ({
|
2020-04-25 05:07:55 -07:00
|
|
|
plugins: [
|
2020-05-06 07:02:56 -07:00
|
|
|
postcssPresetEnv({browsers: packageConfig.browserslist}),
|
2020-04-25 05:47:20 -07:00
|
|
|
autoprefixer(),
|
2020-04-25 05:07:55 -07:00
|
|
|
cssnano()
|
|
|
|
]
|
2020-03-13 01:46:11 -07:00
|
|
|
});
|
2020-02-28 06:36:42 -07:00
|
|
|
|
2020-04-25 05:07:55 -07:00
|
|
|
module.exports = config;
|