On the cache processing of front-end js,css files

js/cssjs/cssjs/css

:jscsshashcss/jshtmlphpphp

  a,bajs,bhtmlphphtml scriptsrcaa a.1.js  a.1.contenthash.js ,ba.1.jsb.1.html   src="a.1.contenthash.js".

I have tried the documentation of webpack, but I don"t feel satisfied with my problem situation:
1. The resource js file is in a directory
2. The php/html files referencing the resource js files are distributed in the directory named by the module (the company uses the php laravel framework),

the younger brother webpack does not use much, and his understanding of webpack is only left on the official website. If webpack can solve a problem similar to mine, please let me know. If webpack cannot, please also let me know about other solutions. Thank you) _ (

)
Mar.07,2021

this is a typical webpack application scenario. Take a good look at the document, the part about templates and output.

Menu