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.

46 lines
707 B

7 years ago
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
function resolve(p) {
return path.resolve(__dirname, './../', p);
7 years ago
}
module.exports = {
target: 'node',
node: {
__dirname: false,
__filename: false,
},
entry: [ './src/index.ts' ],
7 years ago
output: {
filename: "server.js",
path: resolve('dist')
},
optimization: {
minimize: false
},
7 years ago
plugins: [
7 years ago
],
resolve: {
extensions: [".ts", ".js"],
alias: {
'any-promise': 'es6-promise'
}
7 years ago
},
module: {
rules: [
{
test: /\.ts$/,
use: [
{ loader: 'babel-loader' },
{ loader: 'ts-loader' }
]
7 years ago
}
]
}
}