Open SinghManvir opened 5 years ago
The versioning function does not work with Angular 8 as the regex to detect the files is failing.
I am using the regex
/^(es2015-polyfills|main|polyfills|runtime|scripts|styles)/g
instead to make it work but it can be improved perhaps.
Thank you, this worked for me!
Also as I am using Linux, had to make this change on versioning.build.js:
var buildPath = '/';
Heelo,
works but not rename files (not add : ?v=).... but when I display in log variable options seams good ....
changeIndex : { files: '/Users/laposte/Projets/crous78/crous-drive/drive-client-admin/dist/index.html', from: '"styles.d63c45703c18b0004c7c.css"', to: '"styles.d63c45703c18b0004c7c.css?v=1.0.8"', allowEmptyPaths: false }
Thanks
build 没加入 ?v=** 啊
try this one /^.(es2015-polyfills|main|polyfills|runtime|scripts|styles).(js|css)$/g
你的可以?我都升级到Angular9.x了... 试了好几次不行
------------------ 原始邮件 ------------------ 发件人: "Tony Ramesh"<notifications@github.com>; 发送时间: 2020年7月3日(星期五) 中午11:42 收件人: "jitendrahpatwa/ngVersioningAndCaching"<ngVersioningAndCaching@noreply.github.com>; 抄送: "DeathGhost"<232650413@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [jitendrahpatwa/ngVersioningAndCaching] Versioning function does not work with Angular 8 (#1)
try this one /^.(es2015-polyfills|main|polyfills|runtime|scripts|styles).(js|css)$/g
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
The versioning function does not work with Angular 8 as the regex to detect the files is failing.
I am using the regex
/^(es2015-polyfills|main|polyfills|runtime|scripts|styles)/g
instead to make it work but it can be improved perhaps.