Update NodeServices/SpaServices/NodeServices.Sockets to build using latest TypeScript and Webpack (#1748)

This commit is contained in:
Steve Sanderson
2018-08-30 07:51:56 +01:00
committed by GitHub
parent e47f15fdc8
commit ae7b7c2663
15 changed files with 13902 additions and 967 deletions

View File

@@ -1,3 +1,5 @@
const path = require('path');
module.exports = {
target: 'node',
externals: [
@@ -10,8 +12,8 @@ module.exports = {
extensions: [ '.ts' ]
},
module: {
loaders: [
{ test: /\.ts$/, loader: 'ts-loader' },
rules: [
{ test: /\.ts$/, use: 'ts-loader' },
]
},
entry: {
@@ -20,7 +22,10 @@ module.exports = {
},
output: {
libraryTarget: 'commonjs',
path: './Content/Node',
path: path.join(__dirname, 'Content', 'Node'),
filename: '[name].js'
},
optimization: {
minimize: false
}
};