Skip to content

Instantly share code, notes, and snippets.

@kayode-adechinan
Created June 12, 2021 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayode-adechinan/8cfa7d17ac79398b841ca2d8141479c4 to your computer and use it in GitHub Desktop.
Save kayode-adechinan/8cfa7d17ac79398b841ca2d8141479c4 to your computer and use it in GitHub Desktop.
// installation
// npm i -D purgecss
// scripts
// "purge": "purgecss --config ./purgecss.config.js",
module.exports = {
content: ["assets/js/*.js", "*.html"],
//content: ["**/*.js", "**/*.html", "**/*.vue"],
css: ["assets/css/style.css"],
keyframes: true,
fontFace: true,
variables: true,
output: "dist/style.css",
};
@kayode-adechinan
Copy link
Author

// purge css in angular
module.exports = {
content: ["./src/app//*.ts", "./src/app//.html"],
//content: ["**/
.js", "/*.html", "/*.vue"],
css: ["./src/assets/css/style.css"],
keyframes: true,
fontFace: true,
variables: true,
output: "dist/style.css",
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment