UNPKG

print-pdf

Version:
35 lines (32 loc) 682 B
const path = require('path'); const HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = { mode: 'development', entry: './src/index.ts', devtool: 'inline-source-map', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/ } ] }, resolve: { extensions: [ '.tsx', '.ts', '.js' ] }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') }, plugins: [ new HtmlWebpackPlugin({ template: "./public/index.html", filename: "index.html", showErrors: true, path: path.join(__dirname, "./build/"), hash: true }) ] };