Multiple html files using webpack

前端 未结 5 506
谎友^
谎友^ 2020-12-07 09:01

I\'m trying to do something in a project that I\'m not sure if it is possible, I am in a wrong way or misunderstanding something. We are using webpack, and the idea is to se

5条回答
  •  再見小時候
    2020-12-07 09:49

    plugins: [
      ...templates.map(template => new HtmlWebpackPlugin(template))
    ]
    

    This code would help if you have a lot of templates :)

提交回复
热议问题