Skip to content

Issue #3349271: The use of the module sould not be mandatory in production

Hugo C requested to merge issue/vite-3349271:3349271-the-use-of into 1.x

The idea is to allow switching to another "module mode" with a new configuration flag in the settings

In this mode, It would be ok to keep standard Drupal library configuration in production and allow users to use the module as a development dependency.

It assumes the following inconvenients :

  • The manifest has been generated at least once in order to use the dev mode
  • All dependencies have to be explicitly declared in vite.config as they are in libraries.yml (and so hashes can't be used in file names in vite config)

This code should not break the current and default use of the module

Edited by Hugo C

Merge request reports