@breadstone-infrastructure/vite 0.0.170 → 0.0.172
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/CHANGELOG.md +198 -1
- package/Index.d.ts +13 -16
- package/Index.d.ts.map +1 -1
- package/Index.js +11 -11
- package/Index.js.map +1 -1
- package/package.json +3 -3
- package/plugins/env-export/const/Vercel.d.ts.map +1 -0
- package/plugins/env-export/const/Vercel.js.map +1 -0
- package/plugins/env-export/envExport.d.ts.map +1 -0
- package/plugins/env-export/envExport.js.map +1 -0
- package/{2/plugins → plugins}/env-export/envExportPlugin.d.ts +1 -1
- package/plugins/env-export/envExportPlugin.d.ts.map +1 -0
- package/{2/plugins → plugins}/env-export/envExportPlugin.js +3 -3
- package/plugins/env-export/envExportPlugin.js.map +1 -0
- package/plugins/env-export/interfaces/IEnvExportPluginOptions.d.ts.map +1 -0
- package/plugins/env-export/interfaces/IEnvExportPluginOptions.js.map +1 -0
- package/plugins/env-export/types/EnvExportDescriptor.d.ts.map +1 -0
- package/plugins/env-export/types/EnvExportDescriptor.js.map +1 -0
- package/plugins/env-export/types/EnvExportPreset.d.ts.map +1 -0
- package/plugins/env-export/types/EnvExportPreset.js.map +1 -0
- package/plugins/env-export/types/EnvExportPresetFactory.d.ts.map +1 -0
- package/plugins/env-export/types/EnvExportPresetFactory.js.map +1 -0
- package/plugins/env-export/types/EnvExportPresetLike.d.ts.map +1 -0
- package/plugins/env-export/types/EnvExportPresetLike.js.map +1 -0
- package/plugins/env-export/types/EnvExportRecord.d.ts.map +1 -0
- package/plugins/env-export/types/EnvExportRecord.js.map +1 -0
- package/plugins/live-reload/LiveReloadPlugin.d.ts.map +1 -0
- package/plugins/live-reload/LiveReloadPlugin.js.map +1 -0
- package/plugins/live-reload/interfaces/ILiveReloadPluginOptions.d.ts.map +1 -0
- package/plugins/live-reload/interfaces/ILiveReloadPluginOptions.js.map +1 -0
- package/{2/plugins → plugins}/localizator/LocalizatorPlugin.d.ts +1 -1
- package/plugins/localizator/LocalizatorPlugin.d.ts.map +1 -0
- package/{2/plugins → plugins}/localizator/LocalizatorPlugin.js +4 -4
- package/plugins/localizator/LocalizatorPlugin.js.map +1 -0
- package/plugins/localizator/interfaces/ILocalizatorPluginOptions.d.ts.map +1 -0
- package/plugins/localizator/interfaces/ILocalizatorPluginOptions.js.map +1 -0
- package/{2/plugins → plugins}/static-content/StaticContentPlugin.d.ts +1 -1
- package/plugins/static-content/StaticContentPlugin.d.ts.map +1 -0
- package/{2/plugins → plugins/static-content}/StaticContentPlugin.js +4 -4
- package/plugins/static-content/StaticContentPlugin.js.map +1 -0
- package/plugins/static-content/interfaces/IStaticContentPluginOptions.d.ts.map +1 -0
- package/plugins/static-content/interfaces/IStaticContentPluginOptions.js.map +1 -0
- package/virtual/env-export.d.ts +1 -1
- package/virtual/localizator.d.ts +1 -1
- package/virtual/static-content.d.ts +1 -1
- package/2/plugins/LiveReloadPlugin.d.ts +0 -30
- package/2/plugins/LiveReloadPlugin.d.ts.map +0 -1
- package/2/plugins/LiveReloadPlugin.js +0 -57
- package/2/plugins/LiveReloadPlugin.js.map +0 -1
- package/2/plugins/LocalizatorPlugin.d.ts +0 -23
- package/2/plugins/LocalizatorPlugin.d.ts.map +0 -1
- package/2/plugins/LocalizatorPlugin.js +0 -93
- package/2/plugins/LocalizatorPlugin.js.map +0 -1
- package/2/plugins/StaticContentPlugin.d.ts +0 -37
- package/2/plugins/StaticContentPlugin.d.ts.map +0 -1
- package/2/plugins/StaticContentPlugin.js.map +0 -1
- package/2/plugins/env-export/const/Vercel.d.ts.map +0 -1
- package/2/plugins/env-export/const/Vercel.js.map +0 -1
- package/2/plugins/env-export/envExport.d.ts.map +0 -1
- package/2/plugins/env-export/envExport.js.map +0 -1
- package/2/plugins/env-export/envExportPlugin.d.ts.map +0 -1
- package/2/plugins/env-export/envExportPlugin.js.map +0 -1
- package/2/plugins/env-export/interfaces/IEnvExportPluginOptions.d.ts.map +0 -1
- package/2/plugins/env-export/interfaces/IEnvExportPluginOptions.js.map +0 -1
- package/2/plugins/env-export/types/EnvExportDescriptor.d.ts.map +0 -1
- package/2/plugins/env-export/types/EnvExportDescriptor.js.map +0 -1
- package/2/plugins/env-export/types/EnvExportPreset.d.ts.map +0 -1
- package/2/plugins/env-export/types/EnvExportPreset.js.map +0 -1
- package/2/plugins/env-export/types/EnvExportPresetFactory.d.ts.map +0 -1
- package/2/plugins/env-export/types/EnvExportPresetFactory.js.map +0 -1
- package/2/plugins/env-export/types/EnvExportPresetLike.d.ts.map +0 -1
- package/2/plugins/env-export/types/EnvExportPresetLike.js.map +0 -1
- package/2/plugins/env-export/types/EnvExportRecord.d.ts.map +0 -1
- package/2/plugins/env-export/types/EnvExportRecord.js.map +0 -1
- package/2/plugins/live-reload/LiveReloadPlugin.d.ts.map +0 -1
- package/2/plugins/live-reload/LiveReloadPlugin.js.map +0 -1
- package/2/plugins/live-reload/interfaces/ILiveReloadPluginOptions.d.ts.map +0 -1
- package/2/plugins/live-reload/interfaces/ILiveReloadPluginOptions.js.map +0 -1
- package/2/plugins/localizator/LocalizatorPlugin.d.ts.map +0 -1
- package/2/plugins/localizator/LocalizatorPlugin.js.map +0 -1
- package/2/plugins/localizator/interfaces/ILocalizatorPluginOptions.d.ts.map +0 -1
- package/2/plugins/localizator/interfaces/ILocalizatorPluginOptions.js.map +0 -1
- package/2/plugins/static-content/StaticContentPlugin.d.ts.map +0 -1
- package/2/plugins/static-content/StaticContentPlugin.js +0 -229
- package/2/plugins/static-content/StaticContentPlugin.js.map +0 -1
- package/2/plugins/static-content/interfaces/IStaticContentPluginOptions.d.ts.map +0 -1
- package/2/plugins/static-content/interfaces/IStaticContentPluginOptions.js.map +0 -1
- /package/{2/plugins → plugins}/env-export/const/Vercel.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/const/Vercel.js +0 -0
- /package/{2/plugins → plugins}/env-export/envExport.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/envExport.js +0 -0
- /package/{2/plugins → plugins}/env-export/interfaces/IEnvExportPluginOptions.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/interfaces/IEnvExportPluginOptions.js +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportDescriptor.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportDescriptor.js +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPreset.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPreset.js +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPresetFactory.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPresetFactory.js +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPresetLike.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportPresetLike.js +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportRecord.d.ts +0 -0
- /package/{2/plugins → plugins}/env-export/types/EnvExportRecord.js +0 -0
- /package/{2/plugins → plugins}/live-reload/LiveReloadPlugin.d.ts +0 -0
- /package/{2/plugins → plugins}/live-reload/LiveReloadPlugin.js +0 -0
- /package/{2/plugins → plugins}/live-reload/interfaces/ILiveReloadPluginOptions.d.ts +0 -0
- /package/{2/plugins → plugins}/live-reload/interfaces/ILiveReloadPluginOptions.js +0 -0
- /package/{2/plugins → plugins}/localizator/interfaces/ILocalizatorPluginOptions.d.ts +0 -0
- /package/{2/plugins → plugins}/localizator/interfaces/ILocalizatorPluginOptions.js +0 -0
- /package/{2/plugins → plugins}/static-content/interfaces/IStaticContentPluginOptions.d.ts +0 -0
- /package/{2/plugins → plugins}/static-content/interfaces/IStaticContentPluginOptions.js +0 -0
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
// #region Imports
|
|
2
|
-
import { Path, File, red } from '@breadstone-infrastructure/utilities';
|
|
3
|
-
import { createLogger } from 'vite';
|
|
4
|
-
import matter from 'gray-matter';
|
|
5
|
-
// #endregion
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export const VIRTUAL_MODULE_KEY = 'virtual:static-content.ts';
|
|
10
|
-
/**
|
|
11
|
-
* Vite plugin to process Markdown files and expose a component registry, including subfolders.
|
|
12
|
-
* To debug/view the generated components, navigate to `http://localhost:8080/@id/virtual:static-content.ts`.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
* @param options - Plugin options.
|
|
16
|
-
* @returns Vite plugin.
|
|
17
|
-
*/
|
|
18
|
-
export function staticContentPlugin(options) {
|
|
19
|
-
const logger = createLogger();
|
|
20
|
-
return {
|
|
21
|
-
name: 'vite-plugin-static-content',
|
|
22
|
-
handleHotUpdate(ctx) {
|
|
23
|
-
if (ctx.file.endsWith('.md')) {
|
|
24
|
-
const module = ctx.server.moduleGraph.getModuleById(VIRTUAL_MODULE_KEY);
|
|
25
|
-
logger.warn(`[vite-plugin-static-content]: Virtual module: ${module?.id ?? 'not found'}`);
|
|
26
|
-
if (module) {
|
|
27
|
-
ctx.server.moduleGraph.invalidateModule(module);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
logger.warn('[vite-plugin-static-content]: Virtual module not found');
|
|
31
|
-
}
|
|
32
|
-
ctx.server.ws.send({
|
|
33
|
-
type: 'full-reload',
|
|
34
|
-
path: '*'
|
|
35
|
-
});
|
|
36
|
-
logger.info(`[vite-plugin-static-content]: File updated: ${ctx.file}`);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
configureServer(server) {
|
|
40
|
-
server.watcher.on('change', (path) => {
|
|
41
|
-
if (options.verbose) {
|
|
42
|
-
console.log('[vite-plugin-static-content] Changed:', path);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const paths = Array.isArray(options.paths) ? options.paths : [options.paths];
|
|
46
|
-
for (const globPattern of paths) {
|
|
47
|
-
const resolvedFiles = Path.glob(globPattern);
|
|
48
|
-
for (const file of resolvedFiles) {
|
|
49
|
-
server.watcher.add(file);
|
|
50
|
-
logger.info(`[vite-plugin-static-content]: Watching: ${file}`);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
resolveId(source) {
|
|
55
|
-
return source === VIRTUAL_MODULE_KEY
|
|
56
|
-
? source
|
|
57
|
-
: null;
|
|
58
|
-
},
|
|
59
|
-
load(id) {
|
|
60
|
-
if (id === VIRTUAL_MODULE_KEY) {
|
|
61
|
-
const mdFiles = Path.glob(options.paths)
|
|
62
|
-
.filter((file) => file.endsWith('.md'));
|
|
63
|
-
const sharedImports = `
|
|
64
|
-
import { html, LitElement } from 'lit';
|
|
65
|
-
import { customElement } from 'lit/decorators.js';
|
|
66
|
-
import { dateFormat, animate, Animate } from '@breadstone/mosaik-elements-foundation';
|
|
67
|
-
import { BlogBaseElement } from './src/Views/Blog/Abstracts/BlogBase';
|
|
68
|
-
import { Memoize } from './src/Decorators/MemoizeDecorator';
|
|
69
|
-
`.trim();
|
|
70
|
-
let componentsRegistry = 'const components = new Map();';
|
|
71
|
-
const components = mdFiles.map((x, i) => {
|
|
72
|
-
const cwd = options.cwd ?? process.cwd();
|
|
73
|
-
const relativeFilePath = Path.relative(cwd, x);
|
|
74
|
-
const componentName = generateComponentName(relativeFilePath, logger, options);
|
|
75
|
-
const content = File.readAllText(relativeFilePath, 'utf-8');
|
|
76
|
-
const meta = tryGetContentMeta(content, logger, options);
|
|
77
|
-
const contentWithoutMeta = removeMetadata(content);
|
|
78
|
-
const routePath = options.pathTransform
|
|
79
|
-
? options.pathTransform(relativeFilePath)
|
|
80
|
-
: relativeFilePath.replace(/\\/g, '/').replace(/\.md$/, '');
|
|
81
|
-
if (options.verbose) {
|
|
82
|
-
logger.info(`[vite-plugin-static-content]: File transformed: ${relativeFilePath} -> ${routePath}`, {
|
|
83
|
-
timestamp: true,
|
|
84
|
-
clear: true
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const displayName = generateDisplayName(Path.getFileName(relativeFilePath));
|
|
88
|
-
const breadcrumbParts = routePath.split('/');
|
|
89
|
-
const componentCode = `
|
|
90
|
-
class MarkdownComponent${i} extends BlogBaseElement {
|
|
91
|
-
@Memoize()
|
|
92
|
-
protected get description(): ISampleDescription<AnchorElement> {
|
|
93
|
-
return {
|
|
94
|
-
title: '${displayName}',
|
|
95
|
-
breadcrumb: [${breadcrumbParts.map((part, idx) => `{
|
|
96
|
-
label: '${generateDisplayName(part)}',
|
|
97
|
-
href: '/${breadcrumbParts.slice(0, idx + 1).join('/')}'
|
|
98
|
-
}`).join(',\n')}],
|
|
99
|
-
estimatedReadTime: ${estimateReadTime(contentWithoutMeta)},
|
|
100
|
-
meta: components.get('${componentName}')?.meta,
|
|
101
|
-
content: \`${escapeStringForTemplate(contentWithoutMeta)}\`,
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
customElements.define('${componentName}', MarkdownComponent${i});
|
|
107
|
-
`;
|
|
108
|
-
componentsRegistry += `
|
|
109
|
-
components.set('${componentName}', {
|
|
110
|
-
name: 'MarkdownComponent${i}',
|
|
111
|
-
displayName: '${typeof meta.title === 'string' ? escapeStringForTemplate(meta.title) : displayName}',
|
|
112
|
-
path: '${typeof meta.path === 'string' ? meta.path : `/${routePath}`}',
|
|
113
|
-
selector: '${componentName}',
|
|
114
|
-
meta: ${JSON.stringify(meta)}
|
|
115
|
-
});
|
|
116
|
-
`;
|
|
117
|
-
return componentCode;
|
|
118
|
-
}).join('\n');
|
|
119
|
-
return `
|
|
120
|
-
${sharedImports}
|
|
121
|
-
${componentsRegistry}
|
|
122
|
-
${components}
|
|
123
|
-
export default components;
|
|
124
|
-
`.trim();
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Generates a valid Lit component name, applying an optional prefix.
|
|
132
|
-
*
|
|
133
|
-
* @private
|
|
134
|
-
* @param fileName - The file name of the Markdown file
|
|
135
|
-
* @returns A valid component selector name.
|
|
136
|
-
*/
|
|
137
|
-
function generateComponentName(fileName, logger, options) {
|
|
138
|
-
// if (options.verbose) {
|
|
139
|
-
// logger.info(`[vite-plugin-static-content]: Generating component name for file: ${fileName}`);
|
|
140
|
-
// }
|
|
141
|
-
const baseName = fileName
|
|
142
|
-
.replace(/-md$/, '-doc') // Replace `.md` with `-doc`
|
|
143
|
-
.replace(/^(\.\.\/)+/, '') // Remove relative path indicators
|
|
144
|
-
.replace(/[^a-zA-Z0-9]/g, '-') // Replace unsupported characters with dashes
|
|
145
|
-
.toLowerCase();
|
|
146
|
-
// if (options.verbose) {
|
|
147
|
-
// logger.info(`[vite-plugin-static-content]: Generated component name: ${prefix}${baseName}`);
|
|
148
|
-
// }
|
|
149
|
-
return `${options.prefix ?? ''}${baseName}`;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Escapes special characters in a string to make it TypeScript string-safe.
|
|
153
|
-
*
|
|
154
|
-
* @private
|
|
155
|
-
* @param content - The string content to escape.
|
|
156
|
-
* @returns The escaped string.
|
|
157
|
-
*/
|
|
158
|
-
function escapeStringForTemplate(content) {
|
|
159
|
-
return content
|
|
160
|
-
.replace(/\\/g, '\\\\')
|
|
161
|
-
.replace(/`/g, '\\`')
|
|
162
|
-
.replace(/\${/g, '\\${')
|
|
163
|
-
.replace(/'/g, "\\'")
|
|
164
|
-
.replace(/"/g, '\\"');
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Converts a file or folder name to a user-friendly display name.
|
|
168
|
-
*
|
|
169
|
-
* @private
|
|
170
|
-
* @param segment - The file or folder name to convert.
|
|
171
|
-
* @returns A user-friendly display name.
|
|
172
|
-
*/
|
|
173
|
-
function generateDisplayName(segment) {
|
|
174
|
-
return segment
|
|
175
|
-
.replace(/-/g, ' ') // Replace dashes with spaces
|
|
176
|
-
.replace(/_/g, ' ') // Replace underscores with spaces
|
|
177
|
-
.replace(/\.[^/.]+$/, '') // Remove file extensions
|
|
178
|
-
.replace(/\b\w/g, (char) => char.toUpperCase()); // Capitalize the first letter of each word
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* @private
|
|
182
|
-
*/
|
|
183
|
-
function tryGetContentMeta(content, logger, options) {
|
|
184
|
-
try {
|
|
185
|
-
const parsed = matter(content);
|
|
186
|
-
// if (options.verbose) {
|
|
187
|
-
// logger.info(`[vite-plugin-static-content]: Parsed content meta: ${JSON.stringify(parsed.data)}`);
|
|
188
|
-
// }
|
|
189
|
-
return parsed.data;
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
logger.error(`[vite-plugin-static-content]: ${red(`Failed to parse content meta: ${String(error)}`)}`);
|
|
193
|
-
return {};
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* @private
|
|
198
|
-
*/
|
|
199
|
-
function removeMetadata(content) {
|
|
200
|
-
const matterMatch = (/---\n([\s\S]*?)\n---/).exec(content);
|
|
201
|
-
if (matterMatch) {
|
|
202
|
-
return content.replace(matterMatch[0], '').trim();
|
|
203
|
-
}
|
|
204
|
-
return content.trim();
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Calculates estimated reading time for a given Markdown text.
|
|
208
|
-
*
|
|
209
|
-
* @private
|
|
210
|
-
* @param markdown - The Markdown content.
|
|
211
|
-
* @param wordsPerMinute - The average reading speed in words per minute (default: 200).
|
|
212
|
-
* @returns Estimated reading time in minutes.
|
|
213
|
-
*/
|
|
214
|
-
function estimateReadTime(markdown, wordsPerMinute = 100) {
|
|
215
|
-
if (!markdown) {
|
|
216
|
-
return 0;
|
|
217
|
-
}
|
|
218
|
-
// Strip out code blocks, front matter, and HTML tags
|
|
219
|
-
const textOnly = markdown
|
|
220
|
-
// .replace(/`{3}[\s\S]*?`{3}/g, '') // Remove code blocks
|
|
221
|
-
// .replace(/`[^`]*`/g, '') // Remove inline code
|
|
222
|
-
// .replace(/<[^>]+>/g, '') // Remove HTML tags
|
|
223
|
-
.replace(/---[\s\S]*?---/g, '') // Remove front matter
|
|
224
|
-
.replace(/\s+/g, ' ') // Normalize whitespace
|
|
225
|
-
.trim();
|
|
226
|
-
const wordCount = textOnly.split(' ').filter((word) => word.length > 0).length;
|
|
227
|
-
return Math.max(1, Math.ceil(wordCount / wordsPerMinute));
|
|
228
|
-
}
|
|
229
|
-
//# sourceMappingURL=StaticContentPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StaticContentPlugin.js","sourceRoot":"","sources":["../../../../src/2/plugins/static-content/StaticContentPlugin.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAiE,YAAY,EAAE,MAAM,MAAM,CAAC;AACnG,OAAO,MAAM,MAAM,aAAa,CAAC;AAGjC,aAAa;AAEb;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAoC;IACpE,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,OAAO;QACH,IAAI,EAAE,4BAA4B;QAClC,eAAe,CAAC,GAAe;YAC3B,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;gBACxE,MAAM,CAAC,IAAI,CAAC,iDAAiD,MAAM,EAAE,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC;gBAE1F,IAAI,MAAM,EAAE,CAAC;oBACT,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;gBACpD,CAAC;qBAAM,CAAC;oBACJ,MAAM,CAAC,IAAI,CAAC,wDAAwD,CA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0 @@
|
|
|
1
|
-
{"version":3,"file":"IStaticContentPluginOptions.d.ts","sourceRoot":"","sources":["../../../../../src/2/plugins/static-content/interfaces/IStaticContentPluginOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAExC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAEzC,OAAO,CAAC,EAAE,OAAO,CAAC;CAErB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IStaticContentPluginOptions.js","sourceRoot":"","sources":["../../../../../src/2/plugins/static-content/interfaces/IStaticContentPluginOptions.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|