Webpack output output multiple directories?

problem description

want to configure webpack to package multiple pages, but there is a hierarchical relationship between multiple pages. Can output output multiple levels?

the platform version of the problem and what methods you have tried

output has only been configured with pathname

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

webpack multi-page packaging
clipboard.png

,

clipboard.png

want to generate
index/index.html
index/content/content.html

news/news.html

Dec.03,2021

absolutely. Use name of entry as appropriate splicing.
such as js :

filename: '[name]/[name].js'

css :

new MiniCssExtractPlugin({
  filename: '[name]/[name].css'
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ccc6-2c36e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ccc6-2c36e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?