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
941 B
38 lines
941 B
var path = require('path');
|
|
var fs = require('fs');
|
|
var webpack = require('webpack');
|
|
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
"gfp": './src/floorplannerFiles', // webpack floorplanner bundle
|
|
},
|
|
target: 'web',
|
|
devtool: "source-map",
|
|
resolve: {
|
|
extensions: [".tsx", ".js", ".ts"]
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'lib'),
|
|
filename: 'gfp.js',
|
|
libraryTarget: 'window',
|
|
library: 'gfp'
|
|
},
|
|
externals: [
|
|
{
|
|
'../../../release/go': '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 })
|
|
]
|
|
}; |