Skip to content

Commit

Permalink
performance(sqip): use node_modules/.cache/ directory to cache sqip r…
Browse files Browse the repository at this point in the history
…esults
  • Loading branch information
axe312ger committed Jun 3, 2019
1 parent 416778a commit 8164840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gatsby-transformer-sqip/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ module.exports = async args => {

async function sqipSharp({ type, cache, getNodeAndSavePathDependency, store }) {
const program = store.getState().program
const cacheDir = resolve(`${program.directory}/.cache/sqip/`)
const cacheDir = resolve(
`${program.directory}/node_modules/.cache/gatsby-transformer-sqip/`
)

await ensureDir(cacheDir)

Expand Down

0 comments on commit 8164840

Please sign in to comment.