mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-08 04:18:29 +00:00
35 lines
669 B
JavaScript
35 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"),
|
||
|
}),
|
||
|
],
|
||
|
};
|