mardi 10 octobre 2017

Add version to app files with EmberJS

I have next index.html:

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <meta name="fragment" content="!">

  <link rel="icon" href="/assets/favicon.ico">
  <link rel="stylesheet" href="assets/vendor.css?">
  <link rel="stylesheet" href="assets/ember-drink-it.css?"> 
</head>

<body>
  

  <script src="assets/vendor.js?"></script>
  <script src="assets/ember-drink-it.js?"></script>

  
</body>

</html>

I want to add version to my css and js file to prevent users load these files from cache when version grows. As you see, I already tried with ember-cli-app-version addon, but it helpers doesn't work in index.html file for some reason.

So how can I add version to my app files?




Aucun commentaire:

Enregistrer un commentaire