Last active
January 2, 2019 18:26
-
-
Save waynehoover/60d46c6508615a49ae6b716afa7f3995 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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