I was building a nodejs app (typescript, react, webpack) and the build was working fine. I.e. I got in the output what I expected. A HTML file, with the bundle file I expected.
Suddenly, without any change in my code, webpack is only generating a the bundle javascript file (as usual) but the HTML file is gone, i.e it does not generate any more. Here my webpack config file:
const path = require('path'); const config = { mode: "production", entry: path.resolve(__dirname, "../src/index.tsx"), resolve: { extensions: ['.tsx', '.js'] }, output: { // options related to how webpack emits results path: path.resolve(__dirname, "../dist"), filename: "bundle.js" }, module: { rules: [ { test: /.tsx$|.js$/, loader: "ts-loader" , include: path.resolve(__dirname, "../src") }, ] } } module.exports = config; Any clue why my HTML file is not generated anymore and how I can recover it? Thank you!