Skip to content

BleemIs42/html-version-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

html-version-webpack-plugin

Add a timestamp random version for html.

Usage

You need add {{HTML_VERSION}} mark in your html.

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no">
    <title>Document</title>

    <script>
      window.__version = '{{HTML_VERSION}}'
    </script>

</html>

About

Add a timestamp random version for html.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published