Skip to content

Commit

Permalink
fix(pwa): debug mode scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jan 18, 2023
1 parent 827b85c commit 681fdc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/demo-pwa/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const srcFilename = 'alwatr-pwa';

const cleanMode = process.argv.includes('--clean');
const watchMode = process.argv.includes('--watch');
const debugMode = watchMode || process.argv.includes('--debug');
const debugMode = process.argv.includes('--debug');

logger.logOther(banner);

Expand Down
4 changes: 2 additions & 2 deletions ui/demo-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"directory": "ui/demo-pwa"
},
"scripts": {
"b": "yarn build",
"cb": "run-s clean build",
"b": "yarn build --debug",
"cb": "yarn build --debug --clean",
"s": "yarn start",
"w": "yarn watch",
"start": "NODE_OPTIONS=--enable-source-maps run-s clean build serve",
Expand Down
3 changes: 2 additions & 1 deletion ui/element/src/pwa-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ import {AlwatrSmartElement} from './smart-element.js';
export class AlwatrPwaElement extends AlwatrSmartElement {
static override styles: CSSResultGroup = css`
:host {
contain: layout size style;
display: flex;
flex-direction: column;
box-sizing: border-box;
overflow: hidden;
overflow: clip;
contain: layout size style;
height: 100%;
}
.page-container {
Expand Down

0 comments on commit 681fdc2

Please sign in to comment.