2020-07-21 22:57:10 +02:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
//@ts-check
|
|
|
|
|
|
|
|
'use strict';
|
2020-07-22 01:13:52 +02:00
|
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
2020-07-21 22:57:10 +02:00
|
|
|
|
|
|
|
const withBrowserDefaults = require('../shared.webpack.config').browser;
|
|
|
|
|
|
|
|
module.exports = withBrowserDefaults({
|
|
|
|
context: __dirname,
|
|
|
|
entry: {
|
|
|
|
extension: './src/extension.browser.ts',
|
2020-07-22 01:13:52 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
// @ts-ignore
|
|
|
|
new CopyPlugin({
|
|
|
|
patterns: [
|
|
|
|
{ from: 'node_modules/typescript-web-server', to: 'typescript-web' }
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
2020-07-21 22:57:10 +02:00
|
|
|
});
|