mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
webpack.config.ts
This commit is contained in:
parent
b9e36b441f
commit
61aa453716
29
webpack.config.ts
Normal file
29
webpack.config.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import * as path from 'path';
|
||||
import * as webpack from 'webpack';
|
||||
import webpackNodeExternals = require('webpack-node-externals');
|
||||
const config: webpack.Configuration = {
|
||||
entry: './src/index.ts',
|
||||
mode: 'development',
|
||||
target: 'node',
|
||||
externals: [webpackNodeExternals()],
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
output: {
|
||||
filename: 'index.js',
|
||||
path: path.resolve(__dirname, 'lambda'),
|
||||
library: 'index',
|
||||
libraryTarget: 'commonjs2',
|
||||
},
|
||||
};
|
||||
export default config;
|
Loading…
Reference in New Issue
Block a user