Skip to content

Instantly share code, notes, and snippets.

@jspies
Created March 19, 2019 05:20
Show Gist options
  • Save jspies/1e50ba2ffa9dbf9eb68c06e28337ad2d to your computer and use it in GitHub Desktop.
Save jspies/1e50ba2ffa9dbf9eb68c06e28337ad2d to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: {
hello: path.join(__dirname, './src/handlers/hello.ts')
},
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [
{
test: /\.ts?$/,
use: [
{
loader: 'ts-loader',
options: {
transpileOnly: true
}
}
],
exclude: /node_modules/
}
]
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'dist')
},
//devtool: 'inline-source-map',
target: 'web',
mode: process.env.NODE_ENV || 'production'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment