Skip to content

Commit

Permalink
feat: update postcss plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Heilemann committed Feb 4, 2020
1 parent 9d58e8e commit 73de27e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 21 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
data
docker/nginx/certs
reports
.env.*
Expand Down
20 changes: 18 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,24 @@ module.exports = {
},
},
`gatsby-plugin-sass`,
`gatsby-plugin-postcss`,
`gatsby-transformer-json`,
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require('autoprefixer'),
require('cssnano')({
preset: [
'default',
{
discardComments: {
removeAll: true,
},
},
],
}),
],
},
}`gatsby-transformer-json`,
{
resolve: `gatsby-plugin-sharp`,
options: {
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"rebuild": "run-s clean build",
"clean": "gatsby clean",
"serve": "now dev --listen 59235",
"−−−−−−−−−−−−−−−− AUDITS/ANALYTICS −−−−−−−−−−−−−−−−–": "",
"−−−−−−−−−−−−−−−−–−− AUDITS/ANALYTICS −−−−−−−−−−−−−−−−–": "",
"audit": "cross-env SITE_URL=\"https://marvin.lcl\" AUDIT=true run-s rebuild audit-server lighthouse audit-open",
"audit-server": "make restart",
"audit-open": "run-p audit-open:*",
"audit-open:mobile": "node ./scripts/open-report.js lhr.mobile.html",
"audit-open:desktop": "node ./scripts/open-report.js lhr.desktop.html",
"audit-open:treemap": "node ./scripts/open-report.js treemap.html",
"lighthouse": "node ./tests/lighthouse/index.js",
"−−−−−−−−−−−−−−−−−−− LINT/TEST −−−−−−−−−−−−−−−−−−−−–": "",
"−−−−−−−−−−−−−−−−–−---− LINT/TEST −−−−−−−−−−−−−−−−−−−−–": "",
"pretest": "npm run rebuild && make restart",
"test": "run-s test:*",
"test:gatsby": "echo \"Write tests! -> https://gatsby.app/unit-testing\"",
Expand All @@ -29,7 +29,7 @@
"lint:js": "eslint ./gatsby ./plugins ./scripts ./src ./tests ./utils ./*.js",
"lint:scss": "stylelint ./src/styles",
"lint:commit": "commitlint --from HEAD~1",
"−−−−−−−−−−−−−−−−− SCRIPTS/TOOLS −−−−−−−−−−−−−−−−–−−": "",
"−-−−−−−−−−−−−−−−−–−----− TOOLS −−−−−−----−−−−−−−−−−–−−": "",
"postinstall": "lefthook install",
"release": "env-cmd -f ./.env.build release-it --disable-metrics",
"pretty": "pretty-quick"
Expand All @@ -38,7 +38,9 @@
"@mdx-js/mdx": "^1.5.5",
"@mdx-js/react": "^1.5.5",
"@react-spring/web": "^9.0.0-beta.34",
"autoprefixer": "^9.7.4",
"copy-text-to-clipboard": "^2.1.1",
"cssnano": "^4.1.10",
"dayjs": "^1.8.19",
"dot-prop": "^5.2.0",
"gatsby": "^2.19.12",
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

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

15 changes: 0 additions & 15 deletions postcss.config.js

This file was deleted.

0 comments on commit 73de27e

Please sign in to comment.