chore: enable tailwind purge on build, close #6
This commit is contained in:
		
							parent
							
								
									5022d6252f
								
							
						
					
					
						commit
						bc46da1d18
					
				@ -4,7 +4,7 @@
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "dev": "vite",
 | 
			
		||||
    "build": "vite build"
 | 
			
		||||
    "build": "cross-env NODE_ENV=production vite build"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@iconify/iconify": "^2.0.0-beta.6",
 | 
			
		||||
@ -14,18 +14,19 @@
 | 
			
		||||
    "vue-router": "^4.0.0-beta.6"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "vite-plugin-components": "^0.1.0",
 | 
			
		||||
    "@antfu/eslint-config-vue": "^0.3.2",
 | 
			
		||||
    "@iconify/json": "^1.1.208",
 | 
			
		||||
    "@purge-icons/generated": "^0.4.0",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin": "^3.9.1",
 | 
			
		||||
    "@vue/compiler-sfc": "^3.0.0-rc.5",
 | 
			
		||||
    "cross-env": "^7.0.2",
 | 
			
		||||
    "eslint": "^7.7.0",
 | 
			
		||||
    "pnpm": "^5.5.2",
 | 
			
		||||
    "tailwindcss": "^1.7.1",
 | 
			
		||||
    "tailwindcss-dark-mode": "^1.1.6",
 | 
			
		||||
    "typescript": "^3.9.7",
 | 
			
		||||
    "vite": "^1.0.0-rc.4",
 | 
			
		||||
    "vite-plugin-components": "^0.1.0",
 | 
			
		||||
    "vite-plugin-purge-icons": "^0.4.0",
 | 
			
		||||
    "vite-plugin-voie": "^0.3.0",
 | 
			
		||||
    "voie-pages": "^0.3.0"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										13
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							@ -10,6 +10,7 @@ devDependencies:
 | 
			
		||||
  '@purge-icons/generated': 0.4.0
 | 
			
		||||
  '@typescript-eslint/eslint-plugin': 3.9.1_eslint@7.7.0+typescript@3.9.7
 | 
			
		||||
  '@vue/compiler-sfc': 3.0.0-rc.5_vue@3.0.0-rc.5
 | 
			
		||||
  cross-env: 7.0.2
 | 
			
		||||
  eslint: 7.7.0
 | 
			
		||||
  pnpm: 5.5.2
 | 
			
		||||
  tailwindcss: 1.7.1
 | 
			
		||||
@ -1176,6 +1177,17 @@ packages:
 | 
			
		||||
      node: '>=4'
 | 
			
		||||
    resolution:
 | 
			
		||||
      integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==
 | 
			
		||||
  /cross-env/7.0.2:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      cross-spawn: 7.0.3
 | 
			
		||||
    dev: true
 | 
			
		||||
    engines:
 | 
			
		||||
      node: '>=10.14'
 | 
			
		||||
      npm: '>=6'
 | 
			
		||||
      yarn: '>=1'
 | 
			
		||||
    hasBin: true
 | 
			
		||||
    resolution:
 | 
			
		||||
      integrity: sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw==
 | 
			
		||||
  /cross-spawn/7.0.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      path-key: 3.1.1
 | 
			
		||||
@ -4085,6 +4097,7 @@ specifiers:
 | 
			
		||||
  '@typescript-eslint/eslint-plugin': ^3.9.1
 | 
			
		||||
  '@vue/compiler-sfc': ^3.0.0-rc.5
 | 
			
		||||
  '@vueuse/core': ^4.0.0-beta.6
 | 
			
		||||
  cross-env: ^7.0.2
 | 
			
		||||
  eslint: ^7.7.0
 | 
			
		||||
  pnpm: ^5.5.2
 | 
			
		||||
  tailwindcss: ^1.7.1
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,7 @@
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
  purge: {
 | 
			
		||||
    enabled: process.env.NODE_ENV === 'production',
 | 
			
		||||
    content: [
 | 
			
		||||
      './index.html',
 | 
			
		||||
      './src/**/*.vue',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user