Skip to content

Commit

Permalink
add support to jsx and tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hub authored Mar 14, 2020
1 parent c26c090 commit c09075d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = (config, env, helpers, params = defaultParams) => {

const purgecss = require("@fullhuman/postcss-purgecss")({
// Specify the paths to all of the template files in your project
content: ["./src/**/*.js"],
content: ["./src/**/*.tsx", "./src/**/*.js", "./src/**/*.jsx"],

// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(params.regex) || [],
Expand Down

0 comments on commit c09075d

Please sign in to comment.