12345678910111213141516171819202122 |
- module.exports = (ctx) => ({
- map: false,//ctx.env === 'production' ? ctx.options.map : false,
- parser: ctx.options.parser,
- plugins: {
- 'postcss-import': { root: ctx.file.dirname },
- 'postcss-mixins': {},
- // 'postcss-simple-vars': {},
- 'postcss-nested': {},
- 'tailwindcss': {},
- 'autoprefixer': {},
- 'postcss-preset-env': {},
- cssnano: ctx.env !== 'production' ? false : {
- preset: [
- 'default',
- {
- discardComments: { removeAll: true },
- calc: false
- }
- ]
- },
- },
- })
|