mirror of
https://github.com/mermaid-js/mermaid-live-editor.git
synced 2025-03-18 17:16:21 +03:00
24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
const tailwindcss = require('tailwindcss');
|
|
const autoprefixer = require('autoprefixer');
|
|
const cssnano = require('cssnano');
|
|
|
|
const mode = process.env.NODE_ENV;
|
|
const dev = mode === 'development';
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
// Some plugins, like postcss-nested, need to run before Tailwind
|
|
|
|
tailwindcss,
|
|
|
|
// But others, like autoprefixer, need to run after
|
|
|
|
autoprefixer,
|
|
|
|
!dev &&
|
|
cssnano({
|
|
preset: 'default'
|
|
})
|
|
]
|
|
};
|