Last active
June 30, 2022 15:21
-
-
Save petrosDemetrakopoulos/f10d217106b7c44f496c54b1eb2b3bfe to your computer and use it in GitHub Desktop.
Webpack config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = { | |
entry: './src/index.ts', | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: 'ts-loader', | |
exclude: /node_modules/, | |
}, | |
], | |
}, | |
devtool: 'inline-source-map', | |
resolve: { | |
extensions: ['.tsx', '.ts', '.js'], | |
}, | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname, 'dist'), | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment