-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
7 changed files
with
7,705 additions
and
26,705 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 IN_PRODUCTION = process.env.NODE_ENV === "production"; | ||
|
||
module.exports = { | ||
plugins: [ | ||
require("postcss-preset-env")({ stage: 2 }), | ||
require("tailwindcss")("./tailwind.config.js"), | ||
IN_PRODUCTION && | ||
require("@fullhuman/postcss-purgecss")({ | ||
content: [`./public/**/*.html`, `./src/**/*.vue`], | ||
defaultExtractor(content) { | ||
const contentWithoutStyleBlocks = content.replace( | ||
/<style[^]+?<\/style>/gi, | ||
"" | ||
); | ||
return contentWithoutStyleBlocks.match( | ||
/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g | ||
); | ||
}, | ||
whitelist: [], | ||
whitelistPatterns: [ | ||
/-(leave|enter|appear)(|-(to|from|active))$/, | ||
/^(?!(|.*?:)cursor-move).+-move$/, | ||
/^router-link(|-exact)-active$/, | ||
/vt-*/ | ||
] | ||
}), | ||
require("autoprefixer")() | ||
] | ||
}; | ||
plugins: { | ||
tailwindcss: './tailwind.config.js', | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/** | ||
* This injects Tailwind's base styles, which is a combination of | ||
* Normalize.css and some additional base styles. | ||
* | ||
* You can see the styles here: | ||
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css | ||
* | ||
* If using `postcss-import`, use this import instead: | ||
* | ||
* @import "tailwindcss/preflight"; | ||
*/ | ||
@tailwind preflight; | ||
|
||
/** | ||
* This injects any component classes registered by plugins. | ||
* | ||
* If using `postcss-import`, use this import instead: | ||
* | ||
* @import "tailwindcss/components"; | ||
*/ | ||
@tailwind components; | ||
|
||
/** | ||
* Here you would add any of your custom component classes; stuff that you'd | ||
* want loaded *before* the utilities so that the utilities could still | ||
* override them. | ||
* | ||
* Example: | ||
* | ||
* .btn { ... } | ||
* .form-input { ... } | ||
* | ||
* Or if using a preprocessor or `postcss-import`: | ||
* | ||
* @import "components/buttons"; | ||
* @import "components/forms"; | ||
*/ | ||
|
||
/** | ||
* This injects all of Tailwind's utility classes, generated based on your | ||
* config file. | ||
* | ||
* If using `postcss-import`, use this import instead: | ||
* | ||
* @import "tailwindcss/utilities"; | ||
*/ | ||
@tailwind utilities; | ||
|
||
/** | ||
* Here you would add any custom utilities you need that don't come out of the | ||
* box with Tailwind. | ||
* | ||
* Example : | ||
* | ||
* .bg-pattern-graph-paper { ... } | ||
* .skew-45 { ... } | ||
* | ||
* Or if using a preprocessor or `postcss-import`: | ||
* | ||
* @import "utilities/background-patterns"; | ||
* @import "utilities/skew-transforms"; | ||
*/ |
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
Oops, something went wrong.