Add purgecss to remove unused css, purgecss config and build config
This commit is contained in:
12
package.json
12
package.json
@@ -8,25 +8,27 @@
|
||||
"gatsby-link": "^1.6.40",
|
||||
"gatsby-plugin-react-helmet": "^2.0.10",
|
||||
"gatsby-source-wordpress": "^2.0.93",
|
||||
"react-helmet": "^5.2.0",
|
||||
"tailwindcss": "^0.6.1"
|
||||
"react-helmet": "^5.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
"gatsby"
|
||||
],
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "gatsby build",
|
||||
"build": "npm run build:css && purgecss -c ./purgecss.config.js -o ./src/styles && gatsby build",
|
||||
"build:css": "tailwind build ./src/styles/index.tailwind.css -c ./tailwind.config.js -o ./src/styles/index.css",
|
||||
"develop": "npm run build:css && gatsby develop",
|
||||
"develop:cleanstyles": "npm run build:css && purgecss -c ./purgecss.config.js -o ./src/styles && gatsby develop",
|
||||
"format": "prettier --write 'src/**/*.js'",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^1.12.0"
|
||||
"prettier": "^1.12.0",
|
||||
"purgecss": "^1.0.1",
|
||||
"tailwindcss": "^0.6.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user