Skip to content

Commit

Permalink
Merge pull request #72 from API-Guild/purge
Browse files Browse the repository at this point in the history
removed purge-css as it was bugging out on table styling
  • Loading branch information
trevorsmithbanjo committed May 5, 2021
2 parents a21d349 + 3294097 commit 4735f3c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 206 deletions.
14 changes: 0 additions & 14 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@ module.exports = {
},
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: true, // Print removed selectors and processed file names
develop: false, // Enable while using `gatsby develop`
// tailwind: true, // Enable tailwindcss support
// ignore: ['/ignored.css', 'prismjs/', 'docsearch.js/'], // Ignore files/folders
purgeOnly: ["global.scss"], // Purge only these files/folders ex. ['components/', '/main.css', 'bootstrap/']
purgeCSSOptions: {
// https://purgecss.com/configuration.html#options
safelist: ["is-active"], // Don't remove this selector
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
Expand Down
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions
// Ensures we are processing only markdown files
if (node.internal.type === `Mdx`) {
// Use `createFilePath` to turn markdown files in our `content/blog/` directory into `/dashboards/`
// Use `createFilePath` to turn markdown files in our `content/blog/` directory into `/blog/`
const relativeFilePath = createFilePath({
node,
getNode,
Expand All @@ -23,7 +23,7 @@ exports.onCreateNode = ({ node, getNode, actions }) => {
createNodeField({
node,
name: "slug",
value: `/dashboards${modifiedPath}`,
value: `/blog${modifiedPath}`,
})
}
}
Expand Down
187 changes: 0 additions & 187 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,mdx}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"serve": "gatsby serve --prefix-paths",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1",
"deploy": "gatsby build --prefix-paths && gh-pages -d public"
Expand All @@ -26,7 +26,6 @@
"gatsby": "^3.2.1",
"gatsby-plugin-mdx": "^2.3.0",
"gatsby-plugin-page-creator": "^3.3.0",
"gatsby-plugin-purgecss": "^6.0.0",
"gatsby-plugin-react-helmet": "^4.3.0",
"gatsby-plugin-sass": "^4.2.0",
"gatsby-plugin-sharp": "^3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function About() {
<p>
This may sound complex at first, but we built this starter template for you. If you want, you can keep most of the complexity safely under the hood
so you can focus on writing captivating content and embedding engaging visual analytics. Check out the
<Link to="/dashboards/quick-start"> Quick Start</Link> guide. You will have a working site in no time.
<Link to="/blog/quick-start"> Quick Start</Link> guide. You will have a working site in no time.
</p>
</div>
</div>
Expand Down

0 comments on commit 4735f3c

Please sign in to comment.