mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-07 20:10:47 +00:00
34 lines
669 B
JavaScript
34 lines
669 B
JavaScript
const path = require("path");
|
|
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
|
|
module.exports = {
|
|
mode: "development",
|
|
entry: "./src/index.tsx",
|
|
output: {
|
|
filename: "main.js",
|
|
path: path.resolve(__dirname, "build"),
|
|
},
|
|
devServer: {
|
|
static: {
|
|
directory: path.join(__dirname, "build"),
|
|
},
|
|
port: 3000,
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(ts|tsx)$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: [".tsx", ".ts", ".js"],
|
|
},
|
|
plugins: [
|
|
new HtmlWebPackPlugin({
|
|
template: path.resolve(__dirname, "../src/index.html"),
|
|
}),
|
|
],
|
|
};
|