1 | import { Plugin, Compiler } from 'webpack';
|
2 | export interface PiletWebpackPluginOptions {
|
3 | /**
|
4 | * The name of the pilet.
|
5 | */
|
6 | name: string;
|
7 | /**
|
8 | * The version of the pilet.
|
9 | */
|
10 | version: string;
|
11 | /**
|
12 | * The name of the Piral instance / app shell.
|
13 | */
|
14 | piral: string;
|
15 | /**
|
16 | * The schema version. By default, v1 is used.
|
17 | */
|
18 | schema?: 'v0' | 'v1' | 'none';
|
19 | /**
|
20 | * The shared dependencies. By default, these are read from the
|
21 | * Piral instance.
|
22 | */
|
23 | externals?: Array<string>;
|
24 | /**
|
25 | * Additional environment variables to define.
|
26 | */
|
27 | variables?: Record<string, string>;
|
28 | }
|
29 | export declare class PiletWebpackPlugin implements Plugin {
|
30 | private options;
|
31 | constructor(options: PiletWebpackPluginOptions);
|
32 | apply(compiler: Compiler): void;
|
33 | }
|