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 purgecss = require('@fullhuman/postcss-purgecss')({ | |
| // Specify the paths to all of the template files in your project | |
| content: [ | |
| './src/**/*.html', | |
| './src/**/*.js', | |
| ], | |
| // Used to extract class names from your templates | |
| defaultExtractor: content => { | |
| // Capture as liberally as possible | |
| const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [] |
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
| purge: { | |
| enabled: true, // This will *always* minify, even on dev builds | |
| content: [ | |
| './src/**/*.html', | |
| './src/**/*.js', | |
| ], | |
| }, |
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
| try { | |
| const setupResult = await Auth.signUp({ | |
| username: email, | |
| password, | |
| attributes: { | |
| email, | |
| }, | |
| }) | |
| // This will fail | |
| const code = await Auth.setupTOTP(setupResult.user) |
NewerOlder