frontend-playground/ts-webpack/webpack.config.js

23 lines
410 B
JavaScript
Raw Normal View History

2021-07-16 12:46:24 +01:00
const path = require('path');
module.exports = {
entry: './index.ts',
devtool: 'inline-source-map',
mode: 'development',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
}
]
},
resolve: {
extensions: [".js", '.tsx', '.ts']
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
}
};