Skip to content

Commit

Permalink
vendor update
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Apr 30, 2020
1 parent adf1eb6 commit a7fd9a5
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 52 deletions.
18 changes: 1 addition & 17 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
module.exports = {
webpack: function (config, env) {
const purgecss = require('@fullhuman/postcss-purgecss')({

// Specify the paths to all of the template files in your project
content: [
'./src/**/*.html',
'./src/**/*.jsx',
'./src/**/*.tsx',
],

// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
});

config.module.rules.push({
test: /\.css$/,
use: [
Expand All @@ -23,10 +10,7 @@ module.exports = {
plugins: [
require('tailwindcss'),
require('postcss-nested'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss]
: []
require('autoprefixer')
],
},
},
Expand Down
117 changes: 96 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fullhuman/postcss-purgecss": "^2.1.2",
"@testing-library/jest-dom": "^5.5.0",
"@testing-library/react": "^10.0.3",
"@testing-library/user-event": "^10.0.2",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.0",
"@types/node": "^13.13.4",
"@types/qs": "^6.9.1",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@types/react-router-dom": "^5.1.4",
"coveralls": "^3.0.14",
"@types/react-dom": "^16.9.7",
"@types/react-router-dom": "^5.1.5",
"coveralls": "^3.1.0",
"date-fns": "^2.12.0",
"fetch-mock": "^9.4.0",
"jest-environment-jsdom-sixteen": "^1.0.3",
Expand All @@ -23,10 +22,10 @@
"react": "^16.13.1",
"react-app-rewired": "^2.1.5",
"react-dom": "^16.13.1",
"react-hook-form": "^5.4.2",
"react-hook-form": "^5.6.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"tailwindcss": "^1.3.5",
"tailwindcss": "^1.4.0",
"typescript": "~3.8.3"
},
"browserslist": {
Expand Down
8 changes: 1 addition & 7 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/* purgecss start ignore */

@tailwind base;
@tailwind components;
/* purgecss end ignore */

@tailwind utilities;

/* purgecss start ignore */

html,
body,
#root {
Expand Down Expand Up @@ -326,5 +322,3 @@ dd {
@apply w-4/5;
}
}

/* purgecss end ignore */
5 changes: 5 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
module.exports = {
purge: [
'./src/**/*.html',
'./src/**/*.jsx',
'./src/**/*.tsx',
],
theme: {
extend: {},
},
Expand Down

0 comments on commit a7fd9a5

Please sign in to comment.