I am using webpack pug-html-loader + file loader to create a bunch of static fraud patterns.
I also want to start adding hashed package file names, but I cannot figure out how to insert hashed file names in all of my scam templates.
Here is how im is referencing my package currently in all fraud patterns:
script(src="bundle.js") link(href="bundle.css")
How do I change this to the link bundle-[chunkhash].js
/ bundle-[chunkhash].css]
- do I need to pass some variables to pug-html-loader in my webpack.config.js, maybe?
Note. I use extract-text-plugin to output my SASS to a .css bundle file.
source share