You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
920 B

var path = require('path');
var fs = require('fs');
var webpack = require('webpack');
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: {
"gcs": './src/goCloudStorageFiles', // go cloud storage bundle
},
target: 'web',
devtool: "source-map",
resolve: {
extensions: [".tsx", ".js", ".ts"]
},
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'gcs.js',
libraryTarget: 'var',
library: 'gcs'
},
externals:[
{
'gojs': 'go'
}
],
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
}
]
},
plugins: [
new webpack.BannerPlugin("Copyright (C) 1998-2019 by Northwoods Software Corporation. All Rights Reserved.")
////new UglifyJSPlugin({ sourceMap: true })
]
};