14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
const cssnano = require('cssnano')({
|
|
preset: 'default'
|
|
})
|
|
|
|
module.exports = {
|
|
from: 'src/css/index.css',
|
|
to: 'dist/css/index.css',
|
|
plugins: [
|
|
require('tailwindcss'),
|
|
require('autoprefixer'),
|
|
...(process.env.NODE_ENV === 'production' ? [cssnano] : [])
|
|
]
|
|
}
|