2022-03-09 08:23:14 +08:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
2022-03-25 05:13:18 +08:00
|
|
|
// @ts-check
|
2022-03-09 08:23:14 +08:00
|
|
|
const path = require('path');
|
|
|
|
|
2022-03-25 05:13:18 +08:00
|
|
|
const srcDir = path.join(__dirname, 'preview-src');
|
2023-06-10 05:55:05 +08:00
|
|
|
const outDir = path.join(__dirname, 'media');
|
2022-03-09 08:23:14 +08:00
|
|
|
|
2023-06-10 05:55:05 +08:00
|
|
|
require('../esbuild-webview-common').run({
|
|
|
|
entryPoints: {
|
|
|
|
'index': path.join(srcDir, 'index.ts'),
|
|
|
|
'codicon': path.join(__dirname, 'node_modules', 'vscode-codicons', 'dist', 'codicon.css'),
|
|
|
|
},
|
|
|
|
srcDir,
|
|
|
|
outdir: outDir,
|
|
|
|
additionalOptions: {
|
2023-03-08 11:46:53 +08:00
|
|
|
loader: {
|
|
|
|
'.ttf': 'dataurl',
|
2023-06-10 05:55:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}, process.argv);
|