Improve UI (#3)

Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com>
This commit is contained in:
Simon Bihel
2021-12-17 15:02:07 +00:00
committed by GitHub
parent 004ca9e764
commit 0287a60296
15 changed files with 32517 additions and 23541 deletions

21
js/ui/postcss.config.js Normal file
View File

@@ -0,0 +1,21 @@
const tailwindcss = require('tailwindcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const mode = process.env.NODE_ENV;
const dev = mode === 'development';
const config = {
plugins: [
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
tailwindcss(),
//But others, like autoprefixer, need to run after,
autoprefixer(),
!dev &&
cssnano({
preset: 'default',
}),
],
};
module.exports = config;