Skip to content

Commit

Permalink
rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaxru committed Nov 8, 2024
1 parent 59268bf commit 9b58ef0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"build-sw": "node workbox-build.js && npx rollup -c",
"build-sw": "node workbox-build.js && npx rollup -c --bundleConfigAsCjs",
"build-pwa": "ng build && npm run build-sw"
},
"private": true,
Expand Down
21 changes: 11 additions & 10 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import resolve from '@rollup/plugin-node-resolve'
import replace from '@rollup/plugin-replace'
import { terser } from '@rollup/plugin-terser'
import resolve from "@rollup/plugin-node-resolve";
import replace from "@rollup/plugin-replace";
import terser from "@rollup/plugin-terser";

export default {
input: 'dist/ng-ai/sw.js',
input: "dist/ng-ai/sw.js",
output: {
file: 'dist/ng-ai/sw.js',
format: 'iife'
file: "dist/ng-ai/sw.js",
format: "cjs",
},
plugins: [
resolve(),
replace({
'process.env.NODE_ENV': JSON.stringify('development')
"process.env.NODE_ENV": JSON.stringify("development"),
preventAssignment: true,
}),
terser()
]
}
terser(),
],
};
10 changes: 10 additions & 0 deletions src/app/navigation/navigation.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
width: 200px;
}

.mat-drawer-inner-container {
display: flex;
flex-direction: column;
height: 100vh;
}

.mat-drawer-inner-container p {
margin-top: auto;
}

.sidenav .mat-toolbar {
background: inherit;
}
Expand Down

0 comments on commit 9b58ef0

Please sign in to comment.