Skip to content

Commit

Permalink
chore: actualiza deps
Browse files Browse the repository at this point in the history
  • Loading branch information
raulghm committed Jan 30, 2020
1 parent f4c1372 commit f5b801b
Show file tree
Hide file tree
Showing 3 changed files with 1,849 additions and 572 deletions.
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,35 @@
"build": "cross-env NODE_ENV=production run-s clean build:*"
},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^9.7.3",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"autoprefixer": "^9.7.4",
"browser-sync": "^2.26.7",
"cpy-cli": "^3.0.0",
"cross-env": "^6.0.3",
"cross-env": "^7.0.0",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"gulp": "^4.0.2",
"gulp-imagemin": "^6.2.0",
"gulp-imagemin": "^7.1.0",
"http-server-pwa": "^1.0.1",
"husky": "^3.1.0",
"husky": "^4.2.1",
"lighthouse-ci": "^1.10.0",
"lint-staged": "9.5.0",
"mkdirp": "^0.5.1",
"lint-staged": "10.0.4",
"mkdirp": "^1.0.3",
"npm-run-all": "^4.1.5",
"onchange": "^6.1.0",
"postcss-cli": "^6.1.3",
"postcss-cli": "^7.1.0",
"postcss-uncss": "^0.17.0",
"prettier-standard": "^16.1.0",
"rimraf": "^3.0.0",
"rimraf": "^3.0.1",
"uglify-es": "^3.3.10",
"workbox-cli": "^4.3.1"
"uncss": "^0.17.2",
"workbox-cli": "^5.0.0"
},
"dependencies": {
"scrollreveal": "^4.0.5",
Expand Down
22 changes: 8 additions & 14 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['index.html'],
whitelist: [
'iframe',
'is-over',
'is-loaded',
'is-scrollHero',
'is-moreExpanded'
],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
const pluginsProd = [
require('postcss-uncss')({
html: ['index.html']
}),
require('autoprefixer'),
require('cssnano')
]

module.exports = {
plugins: [
require('tailwindcss'),
...(process.env.NODE_ENV === 'production'
? [require('autoprefixer'), require('cssnano'), purgecss]
: [])
...(process.env.NODE_ENV === 'production' ? pluginsProd : [])
]
}
Loading

0 comments on commit f5b801b

Please sign in to comment.