Created
March 4, 2022 18:55
-
-
Save theClarkSell/e81f625dc4cfdad4742c14840d9c674f to your computer and use it in GitHub Desktop.
postcss svelte config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const autoprefixer = require('autoprefixer'); | |
const cssnano = require('cssnano'); | |
const mode = process.env.NODE_ENV; | |
const dev = mode === 'development'; | |
const config = { | |
plugins: [ | |
autoprefixer(), | |
!dev && | |
cssnano({ | |
preset: 'default' | |
}) | |
] | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment