@nitro-web/webpack 0.0.92 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@nitro-web/webpack",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "main": "./webpack.config.js",
7
+ "types": "./types/webpack.config.d.ts",
7
8
  "type": "module",
9
+ "scripts": {
10
+ "types": "tsc webpack.config.js --declaration --declarationMap --allowJs --emitDeclarationOnly --jsx react-jsx --esModuleInterop --skipLibCheck --outDir types"
11
+ },
8
12
  "dependencies": {
9
13
  "@babel/core": "^7.8.0",
10
14
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
@@ -0,0 +1,199 @@
1
+ export function getConfig(config: any): (env: any, argv: any) => {
2
+ devtool: string | boolean;
3
+ entry: string;
4
+ mode: string;
5
+ externals: any[];
6
+ target: any;
7
+ devServer: {
8
+ allowedHosts: string;
9
+ client: {
10
+ logging: string;
11
+ overlay: boolean;
12
+ };
13
+ compress: boolean;
14
+ devMiddleware: {
15
+ writeToDisk: boolean;
16
+ };
17
+ historyApiFallback: boolean;
18
+ host: string;
19
+ hot: boolean;
20
+ port: number;
21
+ proxy: {
22
+ '/api': {
23
+ logLevel: string;
24
+ target: string;
25
+ };
26
+ '/email': {
27
+ logLevel: string;
28
+ target: string;
29
+ };
30
+ };
31
+ };
32
+ infrastructureLogging: {
33
+ level: string;
34
+ };
35
+ module: {
36
+ rules: ({
37
+ test: RegExp;
38
+ use: ({
39
+ loader: string;
40
+ options?: undefined;
41
+ } | {
42
+ loader: string;
43
+ options: {
44
+ sourceMap: boolean;
45
+ postcssOptions?: undefined;
46
+ };
47
+ } | {
48
+ loader: string;
49
+ options: {
50
+ postcssOptions: {
51
+ plugins: any[];
52
+ };
53
+ sourceMap: boolean;
54
+ };
55
+ })[];
56
+ exclude?: undefined;
57
+ loader?: undefined;
58
+ options?: undefined;
59
+ type?: undefined;
60
+ generator?: undefined;
61
+ } | {
62
+ test: RegExp;
63
+ exclude: (path: any) => boolean;
64
+ use: {
65
+ loader: string;
66
+ options: {
67
+ presets: ((string | {
68
+ debug: boolean;
69
+ })[] | (string | {
70
+ allowNamespaces: boolean;
71
+ })[] | (string | {
72
+ runtime: string;
73
+ importSource: string;
74
+ development: boolean;
75
+ })[])[];
76
+ plugins: (string | (string | {
77
+ twin: {
78
+ preset: string;
79
+ config: string;
80
+ };
81
+ })[])[];
82
+ };
83
+ }[];
84
+ loader?: undefined;
85
+ options?: undefined;
86
+ type?: undefined;
87
+ generator?: undefined;
88
+ } | {
89
+ test: RegExp;
90
+ loader: string;
91
+ options: {
92
+ search: string;
93
+ replace: string;
94
+ };
95
+ use?: undefined;
96
+ exclude?: undefined;
97
+ type?: undefined;
98
+ generator?: undefined;
99
+ } | {
100
+ test: RegExp;
101
+ use: {
102
+ loader: string;
103
+ options: {
104
+ delimiter: string;
105
+ header: boolean;
106
+ skipEmptyLines: boolean;
107
+ };
108
+ }[];
109
+ exclude?: undefined;
110
+ loader?: undefined;
111
+ options?: undefined;
112
+ type?: undefined;
113
+ generator?: undefined;
114
+ } | {
115
+ test: RegExp;
116
+ type: string;
117
+ generator: {
118
+ filename: string;
119
+ };
120
+ use?: undefined;
121
+ exclude?: undefined;
122
+ loader?: undefined;
123
+ options?: undefined;
124
+ } | {
125
+ test: RegExp;
126
+ use: {
127
+ loader: string;
128
+ options: {
129
+ svgoConfig: {
130
+ plugins: ({
131
+ name: string;
132
+ params: {
133
+ overrides: {
134
+ removeViewBox: boolean;
135
+ convertPathData: boolean;
136
+ cleanupNumericValues: boolean;
137
+ convertShapeToPath: boolean;
138
+ };
139
+ };
140
+ fn?: undefined;
141
+ } | {
142
+ name: string;
143
+ fn: (root: any, _params: any, info: any) => void;
144
+ params?: undefined;
145
+ })[];
146
+ };
147
+ };
148
+ }[];
149
+ exclude?: undefined;
150
+ loader?: undefined;
151
+ options?: undefined;
152
+ type?: undefined;
153
+ generator?: undefined;
154
+ })[];
155
+ };
156
+ node: {
157
+ __filename: boolean;
158
+ };
159
+ output: {
160
+ filename: string;
161
+ path: any;
162
+ publicPath: string;
163
+ };
164
+ performance: {
165
+ hints: boolean;
166
+ };
167
+ optimization: {
168
+ splitChunks: {
169
+ cacheGroups: {
170
+ vendor: {
171
+ test: RegExp;
172
+ name: string;
173
+ chunks: string;
174
+ };
175
+ };
176
+ };
177
+ minimize: boolean;
178
+ };
179
+ plugins: any[];
180
+ resolve: {
181
+ extensions: string[];
182
+ alias: {
183
+ componentsDir: any;
184
+ };
185
+ };
186
+ stats: {
187
+ all: boolean;
188
+ assets: boolean;
189
+ errors: boolean;
190
+ errorDetails: boolean;
191
+ timings: boolean;
192
+ warnings: boolean;
193
+ };
194
+ watchOptions: {
195
+ aggregateTimeout: number;
196
+ ignored: RegExp;
197
+ };
198
+ }[];
199
+ //# sourceMappingURL=webpack.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.js"],"names":[],"mappings":"AA+BO,yCAOG,QAAG,EAAE,SAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuRlB"}