Skip to content

Instantly share code, notes, and snippets.

@theClarkSell
Created March 4, 2022 18:55
Show Gist options
  • Save theClarkSell/e81f625dc4cfdad4742c14840d9c674f to your computer and use it in GitHub Desktop.
Save theClarkSell/e81f625dc4cfdad4742c14840d9c674f to your computer and use it in GitHub Desktop.
postcss svelte config
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