Skip to content

Commit

Permalink
chore: misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesprague committed Sep 29, 2023
1 parent ee31dea commit ad4218c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 5 additions & 3 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Export all plugins our postcss should use
// safelist any necessary classes here
const cssSafelistClassArray = [];

module.exports = {
plugins: [
require('autoprefixer'),
Expand All @@ -9,11 +11,11 @@ module.exports = {
require('@fullhuman/postcss-purgecss')({
content: [
'./src/index.html',
'./src/index.js',
'./src/index.jsx',
'./src/components/**/*.jsx',
],
fontFace: false,
safelist: [],
safelist: cssSafelistClassArray,
}),
],
};
2 changes: 1 addition & 1 deletion src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function App() {
</div>
</div>
<div className="fixed min-w-full text-base text-center bottom-2">
<a href="https://github.com/mikesprague/tailwindcss-react-pwa-template">
<a href="https://github.com/mikesprague/react-tailwind-ghpages-starter">
<FaGithub />
{' Back to repo'}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" data-theme="night">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
3 changes: 1 addition & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable global-require */
const colors = require('tailwindcss/colors');

module.exports = {
content: ['./src/index.html', './src/index.js', './src/components/**/*.jsx'],
content: ['./src/index.html', './src/index.jsx', './src/components/**/*.jsx'],
theme: {
colors: {
amber: colors.amber,
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { VitePWA } from 'vite-plugin-pwa';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';

export default defineConfig({
root: 'src',
Expand Down

0 comments on commit ad4218c

Please sign in to comment.