haifeng2013 / rollup-plugin-bundle-html

MIT License
27 stars 11 forks source link

map file names do not honor the [hash] #28

Open LivesleyWA opened 4 years ago

LivesleyWA commented 4 years ago

I included the [hash] setting in the js and css file names. The *.js and *.css files have the hash replaced. The *.js.map and *.css.map files do not.

I also attach a typescript definition file if you find it helpful.

Archive.zip

node v12.14.0 osx 10.15.2

a1pack commented 4 years ago

Actually this works for me with some workaround(s). I am using entryFileNames instead of file and generating file name on my own (hashing content of css) in rollup-plugin-svelte css callback.

But it is still broken for me in postcss plugin and I think it is not related to rollup-plugin-bundle-html. More likely it is a rollup bug.