From eea1ae545e9da827464d0f2b5b93721156d0a078 Mon Sep 17 00:00:00 2001 From: minhnhatnoe <86871862+minhnhatnoe@users.noreply.github.com> Date: Wed, 17 May 2023 22:17:18 +0700 Subject: [PATCH] Change powershell script to changes made at upstream --- frontend/package.json | 4 ++-- scripts/windows/frontend_build.ps1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 915d52e..f974384 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,8 +24,8 @@ "scripts": { "test": "echo No tests... yet", "fmt": "prettier \"css/**/*\" \"ts/**/*\" \"*.json\" \"*.js\"", - "dev": "parcel watch -d ../embed/templates \"html/**/*.html\"", - "build": "mkdir -p ../embed/templates && rm -rf ../embed/templates/* && parcel build --no-source-maps -d ../embed/templates \"html/**/*.html\"", + "dev": "parcel watch \"html/**/*.html\"", + "build": "mkdir -p ../embed/templates && rm -rf ../embed/templates/* && parcel build --no-source-maps --no-cache \"html/**/*.html\"", "build:windows": "pwsh --command ../scripts/windows/frontend_build.ps1" }, "alias": { diff --git a/scripts/windows/frontend_build.ps1 b/scripts/windows/frontend_build.ps1 index bb7f4da..148c704 100644 --- a/scripts/windows/frontend_build.ps1 +++ b/scripts/windows/frontend_build.ps1 @@ -2,4 +2,4 @@ $ErrorActionPreference = "Stop" New-Item -Type Directory -Force ../embed/templates | Out-Null Remove-Item -Recurse -Force ../embed/templates/* -parcel build --no-source-maps -d ../embed/templates "html/**/*.html" +parcel build --no-source-maps --no-cache "html/**/*.html"