Replies: 3 comments 1 reply
-
The pug-plugin is designed to replace the html-webpack-plugin, pug-loader and mini-css-extract-plugin completely. What do the preload-webpack-plugin? <link rel="preload" as="script" href="chunk.31132ae6680e598f8879.js"> You can self this write in Pug: link(rel="preload" as="script" href=require('./path/to/source/script.js') ) The generated HTML: <link rel="preload" as="script" href="script.31132ae6680e598f8879.js"> P.S.: Can you please describe your feature request in details what do you concretely want. |
Beta Was this translation helpful? Give feedback.
-
No doubt, that i can set preloaded resources by myself, but i want them to be set automatically, as mentioned plugin do. |
Beta Was this translation helpful? Give feedback.
-
This doesn't make sense because all scripts and styles must be manually specified in the Pug template anyway. Therefore, the additional preload attribute can be added directly by yourself.
|
Beta Was this translation helpful? Give feedback.
-
Hello!
If there are any possibilities how to configure preload for styles or scripts. I found out a plugin, but it requires HtmlWebpackPlugin to be initialized. How can i do it?
Beta Was this translation helpful? Give feedback.
All reactions