Configuration
If pnpm is not installed globally the framework will install it locally using npm. The file which is used by npm is incompatible with pnpm and it’s removed automatically if pnpm is used. pnpm uses pnpm-lock.yaml
file instead of package-lock.json
. This means that any custom dependency configurations should go to .
It’s still possible to use npm. To switch to npm you can set the vaadin.pnpm.enable
system property to false
.
For a Spring Boot based project, you can put into the application.properties
file.
For a plain Java or a JavaEE based project, you can use Servlet 3.0 @WebServlet annotation:
Java
Expand code
or use the traditional web.xml
file
Show code
Expand code
To read more about how to set properties, see the Configuration Properties.
Alternatively, the property can be also set to the , using pnpmEnable
. Note that this only works for production mode.
Show code
Expand code