mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Trying different approach for cleaning cache file of releases
This commit is contained in:
parent
701482cb9f
commit
b256bed29d
@ -17,8 +17,9 @@
|
||||
"packageManager": "yarn@3.6.0",
|
||||
"scripts": {
|
||||
"serve": "run-p 'watch:**'",
|
||||
"build": "REBUILD_VERSION_CACHE=true run-s build-dev:scripts 'build:**'",
|
||||
"build-prod": "NETLIFY=true run-s build-prod:scripts 'build:**'",
|
||||
"build": "run-s clean-version-cache build-dev:scripts 'build:**'",
|
||||
"clean-version-cache": "rm -f source/_data/versionCache.json",
|
||||
"build-prod": "NETLIFY=true run-s clean-version-cache build-prod:scripts 'build:**'",
|
||||
"build:sass": "sass --style=compressed ./source/assets/sass/sass.scss:./source/assets/dist/css/sass.css ./source/assets/sass/noscript.scss:./source/assets/dist/css/noscript.css",
|
||||
"watch:sass": "sass --watch ./source/assets/sass/sass.scss:./source/assets/dist/css/sass.css ./source/assets/sass/noscript.scss:./source/assets/dist/css/noscript.css",
|
||||
"build-dev:scripts": "rollup -c",
|
||||
|
@ -45,9 +45,6 @@ const spawn = (
|
||||
* Retrieves cached version object from cache file.
|
||||
*/
|
||||
const getCacheFile = async () => {
|
||||
if (process.env.NETLIFY || process.env.REBUILD_VERSION_CACHE) {
|
||||
return {};
|
||||
}
|
||||
let versionCache;
|
||||
try {
|
||||
const versionFile = await fs.readFile(VERSION_CACHE_PATH);
|
||||
|
Loading…
Reference in New Issue
Block a user