Rebuild the theme when properties files changes
This commit is contained in:
parent
0e461fd072
commit
5203813e7b
@ -623,10 +623,16 @@ export async function command(params: {
|
||||
}
|
||||
)
|
||||
.on("all", async (...[, filePath]) => {
|
||||
ignore_conditions: {
|
||||
if (filePath.endsWith(".properties")) {
|
||||
break ignore_conditions;
|
||||
}
|
||||
|
||||
ignore_account_spa: {
|
||||
const doImplementAccountSpa =
|
||||
buildContext.implementedThemeTypes.account.isImplemented &&
|
||||
buildContext.implementedThemeTypes.account.type === "Single-Page";
|
||||
buildContext.implementedThemeTypes.account.type ===
|
||||
"Single-Page";
|
||||
|
||||
if (!doImplementAccountSpa) {
|
||||
break ignore_account_spa;
|
||||
@ -634,7 +640,10 @@ export async function command(params: {
|
||||
|
||||
if (
|
||||
!isInside({
|
||||
dirPath: pathJoin(buildContext.themeSrcDirPath, "account"),
|
||||
dirPath: pathJoin(
|
||||
buildContext.themeSrcDirPath,
|
||||
"account"
|
||||
),
|
||||
filePath
|
||||
})
|
||||
) {
|
||||
@ -660,6 +669,7 @@ export async function command(params: {
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`Detected changes in ${filePath}`);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user