Custom generated filename with Angular Cli

前端 未结 6 1089
孤独总比滥情好
孤独总比滥情好 2020-12-24 02:18

With Angular-cli the builded filename is main.[hash].bundle.js when use ng build -prod Is it possible to remove the hash form this filename. So just main.

6条回答
  •  一个人的身影
    2020-12-24 03:22

    As per my understanding the hash is used for production build so that one wont run into browser cache issues, and the users wont have to clear cache before using the new deployment.

    I doubt that angular-cli team would give us an option to configure that, we have to wait to check that.

    Meanwhile if you want to customize your build process you may build the webpack config yourself.

    Also, the CLI team has indicated that there will be a few webpack plugins which will help in creating own webpack configuration. Checkout here.

    More details here, WEBPACK: AN INTRODUCTION.

提交回复
热议问题