Skip to content

Instantly share code, notes, and snippets.

@waynehoover
Last active January 2, 2019 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save waynehoover/60d46c6508615a49ae6b716afa7f3995 to your computer and use it in GitHub Desktop.
Save waynehoover/60d46c6508615a49ae6b716afa7f3995 to your computer and use it in GitHub Desktop.
const production = {
plugins: [
require('tailwindcss')('./tailwind.js'),
require('postcss-nested'),
require('@fullhuman/postcss-purgecss')({
content: ['./src/**/*.pug'],
})
]
}
const dev = {
plugins: [
require('tailwindcss')('./tailwind.js'),
require('postcss-nested')
]
};
const config = {
production,
dev
};
if(process.env.NODE_ENV === 'production'){
module.exports = config['production'];
}else{
module.exports = config['dev'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment