Skip to content

Commit

Permalink
chore(console): turn on parcel no-cache (#378)
Browse files Browse the repository at this point in the history
# Bug


![image](https://github.com/TBD54566975/ftl/assets/1058725/32538d4a-6956-4226-b1d6-fabe09b0f2c2)

# Fix
Disables parcel cache

> [Caching can also be disabled using the --no-cache flag. Note that
this only disables reading from the cache – a .parcel-cache folder will
still be created.
](https://parceljs.org/features/development/#caching)

Hash filenames do not change unless that content type has change though
regardless. In the below screenshot I changed one line and got diff then
ran the build on the original twice.

![Screenshot 2023-09-12 at 11 20 43
AM](https://github.com/TBD54566975/ftl/assets/1058725/e268b25b-4edc-4868-bdf7-a97a150b0983)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
EdwardIrby and github-actions[bot] authored Sep 12, 2023
1 parent fe0fd35 commit c87d03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"build": "tsc && parcel build",
"build": "tsc && parcel build --no-cache",
"build:css-types": "tcm --c -e -p 'src/**/*.css' .",
"copy:css": "node ./scripts/copy-css.cjs",
"dev": "node scripts/dev.cjs",
"lint": "eslint . --ext .ts,.tsx,.js,.cjs",
"lint:fix": "npm run lint -- --fix --quiet",
"parcel": "parcel --port 5173",
"parcel": "parcel --port 5173 --no-cache",
"prettier": "prettier . --write",
"test": "jest ./src",
"test:coverage": "jest ./src --coverage",
Expand Down

0 comments on commit c87d03a

Please sign in to comment.