29 lines
660 B
JavaScript
29 lines
660 B
JavaScript
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './src/server/server.ts',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
// https://github.com/felixge/node-formidable/issues/337#issuecomment-153408479
|
|
plugins: [
|
|
new webpack.DefinePlugin({ "global.GENTLY": false })
|
|
],
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
resolve: {
|
|
extensions: [ '.tsx', '.ts', '.js' ]
|
|
},
|
|
output: {
|
|
filename: 'server.js',
|
|
path: __dirname + '/dist/'
|
|
},
|
|
target: 'node'
|
|
}; |