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