mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
Add cache-busting query params to index.mst
This commit is contained in:
parent
c1d947ebe3
commit
f4f11c8884
@ -583,7 +583,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerMultiTask('attachCopyright', function() {
|
grunt.registerMultiTask('attachCopyright', function() {
|
||||||
var files = this.data.src;
|
var files = this.data.src;
|
||||||
var copyright = "/**\n"+
|
var copyright = "/**\n"+
|
||||||
" * Copyright JS Foundation and other contributors, http://js.foundation\n"+
|
" * Copyright OpenJS Foundation and other contributors, https://openjsf.org/\n"+
|
||||||
" *\n"+
|
" *\n"+
|
||||||
" * Licensed under the Apache License, Version 2.0 (the \"License\");\n"+
|
" * Licensed under the Apache License, Version 2.0 (the \"License\");\n"+
|
||||||
" * you may not use this file except in compliance with the License.\n"+
|
" * you may not use this file except in compliance with the License.\n"+
|
||||||
|
@ -27,7 +27,8 @@ var defaultContext = {
|
|||||||
tabicon: {
|
tabicon: {
|
||||||
icon: "red/images/node-red-icon-black.svg",
|
icon: "red/images/node-red-icon-black.svg",
|
||||||
colour: "#8f0000"
|
colour: "#8f0000"
|
||||||
}
|
},
|
||||||
|
version: require(path.join(__dirname,"../../package.json")).version
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
title: "Node-RED",
|
title: "Node-RED",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<!--
|
<!--
|
||||||
Copyright JS Foundation and other contributors, http://js.foundation
|
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -24,24 +24,24 @@
|
|||||||
<title>{{ page.title }}</title>
|
<title>{{ page.title }}</title>
|
||||||
<link rel="icon" type="image/png" href="{{ page.favicon }}">
|
<link rel="icon" type="image/png" href="{{ page.favicon }}">
|
||||||
<link rel="mask-icon" href="{{ page.tabicon.icon }}" color="{{ page.tabicon.colour }}">
|
<link rel="mask-icon" href="{{ page.tabicon.icon }}" color="{{ page.tabicon.colour }}">
|
||||||
<link rel="stylesheet" href="vendor/jquery/css/base/jquery-ui.min.css">
|
<link rel="stylesheet" href="vendor/jquery/css/base/jquery-ui.min.css?v={{ page.version }}">
|
||||||
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
|
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css?v={{ page.version }}">
|
||||||
<link rel="stylesheet" href="red/style.min.css">
|
<link rel="stylesheet" href="red/style.min.css?v={{ page.version }}">
|
||||||
{{#page.css}}
|
{{#page.css}}
|
||||||
<link rel="stylesheet" href="{{.}}">
|
<link rel="stylesheet" href="{{.}}">
|
||||||
{{/page.css}}
|
{{/page.css}}
|
||||||
{{#asset.vendorMonaco}}
|
{{#asset.vendorMonaco}}
|
||||||
<link rel="stylesheet" href="vendor/monaco/style.css">
|
<link rel="stylesheet" href="vendor/monaco/style.css?v={{ page.version }}">
|
||||||
{{/asset.vendorMonaco}}
|
{{/asset.vendorMonaco}}
|
||||||
</head>
|
</head>
|
||||||
<body spellcheck="false">
|
<body spellcheck="false">
|
||||||
<div id="red-ui-editor"></div>
|
<div id="red-ui-editor"></div>
|
||||||
<script src="vendor/vendor.js"></script>
|
<script src="vendor/vendor.js?v={{ page.version }}"></script>
|
||||||
{{#asset.vendorMonaco}}
|
{{#asset.vendorMonaco}}
|
||||||
<script src="{{ asset.vendorMonaco }}"></script>
|
<script src="{{ asset.vendorMonaco }}?v={{ page.version }}"></script>
|
||||||
{{/asset.vendorMonaco}}
|
{{/asset.vendorMonaco}}
|
||||||
<script src="{{ asset.red }}"></script>
|
<script src="{{ asset.red }}?v={{ page.version }}"></script>
|
||||||
<script src="{{ asset.main }}"></script>
|
<script src="{{ asset.main }}?v={{ page.version }}"></script>
|
||||||
{{# page.scripts }}
|
{{# page.scripts }}
|
||||||
<script src="{{.}}"></script>
|
<script src="{{.}}"></script>
|
||||||
{{/ page.scripts }}
|
{{/ page.scripts }}
|
||||||
|
Loading…
Reference in New Issue
Block a user