jantimon / html-webpack-plugin

Simplifies creation of HTML files to serve your webpack bundles
MIT License
10.71k stars 1.31k forks source link

Don't update static link file in template.html #1825

Closed Paladnix closed 10 months ago

Paladnix commented 1 year ago

How to keep origin code not been updated?

There are some fixed css code and personal css code, link like this. BUT, it is been updated by plugin.

  <link rel="stylesheet" href="/static/plugins/prism/prism.css" type="text/css" />
alexander-akait commented 10 months ago

You should can you webpackConfig.output.publicPath in template to use the valid public path, please read here https://github.com/jantimon/html-webpack-plugin#writing-your-own-templates, feel free to feedback