756b365adf
* Add start of Sanity CMS example * Update cover-image * Clean up example * Apply suggestions from code review Co-Authored-By: Shu Uesugi <shu@chibicode.com> * Make changes from review * Remove extra style * Apply suggestions from code review Co-Authored-By: Shu Uesugi <shu@chibicode.com> * Make tweaks for preview mode and normalize env naming * Update viewing preview step * Delete author.jpg * Delete image.jpg * Update README * Fix environment variable names * Project ID is needed by lambda * Improved steps * Fixed issue with the project URL example * Clarify line * Get the preview post correctly * preview = false * Get unique posts * Show preview mode on index page * typo fix and use next latest * Added related examples section Co-authored-by: Shu Uesugi <shu@chibicode.com> Co-authored-by: Luis Alvarez <luis@zeit.co>
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
module.exports = {
|
|
plugins: [
|
|
'tailwindcss',
|
|
...(process.env.NODE_ENV === 'production'
|
|
? [
|
|
[
|
|
'@fullhuman/postcss-purgecss',
|
|
{
|
|
content: [
|
|
'./pages/**/*.{js,jsx,ts,tsx}',
|
|
'./components/**/*.{js,jsx,ts,tsx}',
|
|
],
|
|
defaultExtractor: content =>
|
|
content.match(/[\w-/:]+(?<!:)/g) || [],
|
|
},
|
|
],
|
|
]
|
|
: []),
|
|
'postcss-preset-env',
|
|
],
|
|
}
|