qpa-client/webpack.config.js
2018-04-02 20:23:44 +02:00

25 lines
No EOL
464 B
JavaScript

const path = require('path')
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './src/index.ts',
target: 'node',
module: {
rules: [
{
test: /\.ts?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts']
},
output: {
filename: 'index.js', // <-- Important
libraryTarget: 'this' // <-- Important
},
externals: [nodeExternals()]
};