UNPKG

thehandy-react

Version:

React utility components for working with The Handy automatic stroker

31 lines (29 loc) 773 B
const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const htmlWebpackPlugin = new HtmlWebpackPlugin({ template: path.join(__dirname, "./example/src/index.html"), filename: "./index.html", }); module.exports = { entry: path.join(__dirname, "./example/src/app.tsx"), output: { path: path.join(__dirname, "example/dist"), filename: "bundle.js", }, module: { rules: [ { test: /\.(js|jsx|ts|tsx)$/, use: "babel-loader", exclude: /node_modules/, }, ], }, plugins: [htmlWebpackPlugin], resolve: { extensions: [".js", ".jsx", ".ts", ".tsx"], }, devServer: { port: 3001, }, };