mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
* Add tailwind to desktop * Add tailwind to browser * Toy around with using CL in desktop * Move custom css into the tailwind theme * Revert component experiment * Add components to browser tsconfig * Fix build
20 lines
630 B
TypeScript
20 lines
630 B
TypeScript
import { enableProdMode } from "@angular/core";
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
|
|
|
import { isDev } from "../utils";
|
|
|
|
require("../scss/styles.scss");
|
|
require("../scss/tailwind.css");
|
|
|
|
import { AppModule } from "./app.module";
|
|
|
|
if (!isDev()) {
|
|
enableProdMode();
|
|
}
|
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
|
|
|
|
// Disable drag and drop to prevent malicious links from executing in the context of the app
|
|
document.addEventListener("dragover", (event) => event.preventDefault());
|
|
document.addEventListener("drop", (event) => event.preventDefault());
|