Answer the question
In order to leave comments, you need to log in
Why doesn't pug change in html?
The file is not formatted in html when starting the project
{
test: /\.pug$/,
loader: "pug-loader"
}
]
},
resolve: {
extensions: [".vue", ".js", ".json"],
},
plugins: [
new webpack.NoEmitOnErrorsPlugin(),
new webpack.optimize.CommonsChunkPlugin({
name: "main"
}),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, "..", "server",'index.pug'),
filename: 'index.html',
})
doctype html
html
head
title DeuL
body
block content
#wrap
block scripts
script(src='/js/app.js')
script(src='/js/main.js')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question