Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Removing the hash from the SPFx bundle file name

Just a quick follow up on this topic Controlling Spfx Bundle file name in production builds

It seems the latest drop of SPFx added a new setting that allows you to bypass the hash mechanism and prevent it from being added to your bundle file names.

I have yet to confirm this, but it seems you can add this code to you gulpfile.js:
build.copyAssets.taskConfig = { excludeHashFromFileNames: true, }

And this will stop adding the hash to the file names.

Posted: https://github.com/SharePoint/sp-dev-fx-webparts/issues/246#issuecomment-335946172
By: Franck Cornu
(Thanks!)

I will give it a try and update here if it works. See my other blog post on how to edit the file name and add the version number automatically as well.



This post first appeared on Kwizcom Sharepoint Crm, please read the originial post: here

Share the post

Removing the hash from the SPFx bundle file name

×

Subscribe to Kwizcom Sharepoint Crm

Get updates delivered right to your inbox!

Thank you for your subscription

×