diff --git a/src/main/bundles/README.md b/src/main/bundles/README.md new file mode 100644 index 0000000..581b703 --- /dev/null +++ b/src/main/bundles/README.md @@ -0,0 +1,32 @@ +This directory is automatically generated by Vaadin and contains the pre-compiled +frontend files/resources for your project (frontend development bundle). + +It should be added to Version Control System and committed, so that other developers +do not have to compile it again. + +Frontend development bundle is automatically updated when needed: +- an npm/pnpm package is added with @NpmPackage or directly into package.json +- CSS, JavaScript or TypeScript files are added with @CssImport, @JsModule or @JavaScript +- Vaadin add-on with front-end customizations is added +- Custom theme imports/assets added into 'theme.json' file +- Exported web component is added. + +If your project development needs a hot deployment of the frontend changes, +you can switch Flow to use Vite development server (default in Vaadin 23.3 and earlier versions): +- set `vaadin.frontend.hotdeploy=true` in `application.properties` +- configure `vaadin-maven-plugin`: +``` + + true + +``` +- configure `jetty-maven-plugin`: +``` + + + true + + +``` + +Read more [about Vaadin development mode](https://vaadin.com/docs/next/configuration/development-mode/#pre-compiled-front-end-bundle-for-faster-start-up). \ No newline at end of file diff --git a/src/main/bundles/dev.bundle b/src/main/bundles/dev.bundle new file mode 100644 index 0000000..7562bd9 Binary files /dev/null and b/src/main/bundles/dev.bundle differ diff --git a/src/main/java/com/example/application/views/login/LoginView.java b/src/main/java/com/example/application/views/login/LoginView.java index ecc61c9..d191637 100644 --- a/src/main/java/com/example/application/views/login/LoginView.java +++ b/src/main/java/com/example/application/views/login/LoginView.java @@ -1,6 +1,5 @@ package com.example.application.views.login; -import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.component.html.H1; import com.vaadin.flow.component.html.H2; import com.vaadin.flow.component.login.LoginForm; @@ -12,7 +11,6 @@ import com.vaadin.flow.server.auth.AnonymousAllowed; @Route("login") @PageTitle("Login") @AnonymousAllowed -@CssImport("./styles.css") public class LoginView extends VerticalLayout {