Created
August 26, 2021 04:04
-
-
Save chyld/5a0c68cbaa1de17148d24b88c68c5f14 to your computer and use it in GitHub Desktop.
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 = { | |
mode: "development", | |
entry: "./src/main.ts", | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: "ts-loader", | |
exclude: /node_modules/, | |
}, | |
], | |
}, | |
resolve: { | |
extensions: [".tsx", ".ts", ".js"], | |
}, | |
output: { | |
filename: "bundle.js", | |
path: path.resolve(__dirname, "public"), | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment