-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d25c1d
commit 4417d7c
Showing
8 changed files
with
659 additions
and
215 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,29 +1,6 @@ | ||
const autoprefixer = require('autoprefixer'); | ||
const tailwindcss = require('tailwindcss'); | ||
const postcssPurgecss = require(`@fullhuman/postcss-purgecss`); | ||
|
||
const purgecss = postcssPurgecss({ | ||
// Specify the paths to all of the template files in your project. | ||
content: [ | ||
'./public/**/*.html', | ||
'./src/**/*.vue', | ||
], | ||
// Include any special characters you're using in this regular expression. | ||
// See: https://tailwindcss.com/docs/controlling-file-size/#understanding-the-regex | ||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [], | ||
// Whitelist auto generated classes for transitions and router links. | ||
// From: https://github.com/ky-is/vue-cli-plugin-tailwind | ||
whitelistPatterns: [ | ||
/-(leave|enter|appear)(|-(to|from|active))$/, | ||
/^(?!(|.*?:)cursor-move).+-move$/, | ||
/^router-link(|-exact)-active$/ | ||
], | ||
}); | ||
|
||
module.exports = { | ||
plugins: [ | ||
tailwindcss, | ||
autoprefixer, | ||
...(process.env.NODE_ENV === "production" ? [purgecss] : []), | ||
], | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
} | ||
}; |
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