question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What method can add a version number at the back of the file?

See original GitHub issue
<html>
<head>
    <!-- build:css css/combined.css -->
    <link href="css/one.css" rel="stylesheet">
    <link href="css/two.css" rel="stylesheet">
    <!-- endbuild -->
</head>
<body>
    <!-- build:js scripts/combined.js -->
    <script type="text/javascript" src="scripts/one.js"></script>
    <script type="text/javascript" src="scripts/two.js"></script>
    <!-- endbuild -->
</body>
</html>

I want the resulting HTML like this:

<html>
<head>
    <link rel="stylesheet" href="css/combined.css?v=20150829"/>
</head>
<body>
    <script src="scripts/combined.js?v=20150829"></script>
</body>
</html>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
henriquechehadcommented, Jan 26, 2017

Some update about doing:

unicorn.css → unicorn.css?v=d41d8cd98f instead: unicorn.css → unicorn-d41d8cd98f.css ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where do you store your version number(s)? - Claris Community
I need a better way of keeping track of which version the file (or ... 1) "SOLUTION" table with a single record, where...
Read more >
File Naming Conventions & Version Control
Include a 'version control table' with each important document, noting changes and their dates alongside the appropriate version number of the document. If ......
Read more >
How To Do Document Version Control (with example)
Add the number to the file name. You can have Project Charter 0.1.docx and Business Case 0.1.docx. The numbering is specific to each...
Read more >
How to insert version numbers in our java jars, that a user can ...
Firstly -- make sure your program or tool can some SHOW the version number. But where does it come from? We include it...
Read more >
How versioning works in lists and libraries - Microsoft Support
A version is created only when someone checks out a file, changes it, and then checks it back in. When check-out is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found