-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vulnerability):purge css issues
- Loading branch information
1 parent
cf6cd10
commit 1502b54
Showing
7 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
const tailwindcss = require('tailwindcss'); | ||
const whiteListClasses = require('./src/config/whiteListClasses'); | ||
const purgecss = require('@fullhuman/postcss-purgecss') | ||
|
||
module.exports = { | ||
plugins: [ | ||
tailwindcss('./tailwind.config.js'), | ||
require('autoprefixer'), | ||
require('@fullhuman/postcss-purgecss')({ | ||
content: ['./src/**/*.js'], | ||
defaultExtractor: (content) => | ||
content.match(/[\w-/:]+(?<!:)/g) || [], | ||
whitelist: whiteListClasses | ||
}) | ||
require('autoprefixer') | ||
// purgecss({ | ||
// content: ["./src/**/*.js", "./demo/src/**/*.js"], | ||
// css: ["./public/css/**/*.css"], | ||
// defaultExtractor: content => content.match(/[\w-./:]+(?<!:)/g) || [], | ||
// safelist: whiteListClasses | ||
// }), | ||
] | ||
}; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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