mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
/**
|
|
* Copyright (c) 2020 TypeFox GmbH. All rights reserved.
|
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
* See License-AGPL.txt in the project root for license information.
|
|
*/
|
|
|
|
// @ts-check
|
|
|
|
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, 'lib/index.js'),
|
|
output: {
|
|
filename: '[name].js',
|
|
chunkFilename: '[name].js',
|
|
path: path.resolve(__dirname, 'dist')
|
|
},
|
|
plugins: [new HtmlWebpackPlugin({
|
|
meta: {
|
|
"referrer": "origin"
|
|
},
|
|
favicon: 'public/favicon.ico',
|
|
base: '_supervisor/frontend/',
|
|
title: 'Gitpod'
|
|
})],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/i,
|
|
use: ['style-loader', 'css-loader']
|
|
},
|
|
{
|
|
test: /\\.js$/,
|
|
enforce: 'pre',
|
|
loader: 'source-map-loader'
|
|
}
|
|
]
|
|
},
|
|
node: {
|
|
fs: 'empty',
|
|
child_process: 'empty',
|
|
net: 'empty',
|
|
crypto: 'empty',
|
|
tls: 'empty'
|
|
},
|
|
devtool: 'source-map'
|
|
};
|