docspell/modules/webapp/postcss.config.js
eikek f5e375614f Fix tailwind setup
- Adopted postcss and tailwind config to new version
- renamed colors bluegray->slate etc to not have custom
  definitions (hope to reduce migration next time)
- tailwind now doesn't build the complete css anymore, so the
  `dev-ui-build` script must compile both
2021-12-20 23:40:32 +01:00

22 lines
445 B
JavaScript

//postcss.config.js
const basePlugins =
[
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
];
const prodPlugins =
[
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
require('cssnano'),
];
module.exports = (ctx) => ({
plugins: ctx && ctx.env === 'production' ? prodPlugins : basePlugins
})