Skip to content

Instantly share code, notes, and snippets.

@Umkus
Created May 25, 2021 20:27
Show Gist options
  • Save Umkus/207dd21fff65e214b2f28e4270c5d4d7 to your computer and use it in GitHub Desktop.
Save Umkus/207dd21fff65e214b2f28e4270c5d4d7 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
mode: 'production',
entry: './src/index.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment