betty.extensions.webpack.build module¶
Perform Webpack builds.
- class betty.extensions.webpack.build.Builder¶
Bases:
objectBuild Webpack assets.
- class betty.extensions.webpack.build.EntryPointProvider¶
Bases:
ExtensionAn extension that provides Webpack entry points.
- abstractmethod webpack_entry_point_cache_keys() Sequence[str]¶
Get the keys that make a Webpack build for this provider unique.
Providers that can be cached regardless may
return ().
- abstractmethod classmethod webpack_entry_point_directory() StrPath¶
Get the path to the directory with the entry point assets.
The directory must include at least a
package.jsonandmain.ts.
- betty.extensions.webpack.build.webpack_build_id(entry_point_providers: Sequence[EntryPointProvider], debug: bool) str¶
Generate the ID for a Webpack build.