Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

feat: add purge css for tailwind template #241

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions template/_package.json
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@
"eslint-plugin-prettier": "^3.0.1",
"prettier": "^1.16.4"<% } %><% if (ui === 'tailwind') { %>,
"autoprefixer": "^8.6.4",
"nuxt-purgecss": "^0.2.1",
"tailwindcss": "^0.7.0"<% } else if (ui === 'vuetify') { %>,
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2"<% } %><% if (test !== 'none') { %>,
10 changes: 9 additions & 1 deletion template/nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -79,7 +79,9 @@ module.exports = {
'@nuxtjs/bulma',<% } %><% if (ui === 'buefy') { %>
// Doc: https://buefy.github.io/#/documentation
'nuxt-buefy',<% } %><% if (pwa === 'yes') { %>
'@nuxtjs/pwa',<% } %>
'@nuxtjs/pwa',<% } %><% if (ui === 'tailwind') { %>
// Doc: https://github.com/Developmint/nuxt-purgecss
'nuxt-purgecss',<% } %>
],
<% if (axios === 'yes') { %>
/*
@@ -89,6 +91,12 @@ module.exports = {
axios: {
},<% } %>

<% if (ui === 'tailwind') { %>
purgeCSS: {
// your settings here
// https://www.purgecss.com/
},
<% } %>
/*
** Build configuration
*/