1. It has been changed for a long time, but there are mistakes.
2.webpack.config.js
var webpack = require("webpack");
var htmlWebpackPlugin = require("html-webpack-plugin");
var path = require("path");
module.export={
plugins:[
]
};
3.
1. It has been changed for a long time, but there are mistakes.
2.webpack.config.js
var webpack = require("webpack");
var htmlWebpackPlugin = require("html-webpack-plugin");
var path = require("path");
module.export={
plugins:[
]
};
3.
misspelled words, Big Brother
'./src/js/mian.js' main
after using webpack-dev-middleware , the generated html is in memory, but the route of express, for example, app.js app.set( views , path.join(__dirname, views )) routes.js router.get( home , (req,res) => { res.render( home ) }) ...