Build expiration date
Add the buildExpiration config and add it to the renderer's config object. Use grunt to write the build expiration to config/local-production.json which will override the default value (no expiration) in production. Finally, run this grunt task as part of the build process. // FREEBIE
This commit is contained in:
parent
d0fc2f7e71
commit
e7e030a5e2
5 changed files with 20 additions and 2 deletions
1
main.js
1
main.js
|
@ -68,6 +68,7 @@ function createWindow () {
|
|||
query: {
|
||||
locale: locale,
|
||||
version: package_json.version,
|
||||
buildExpiration: config.get('buildExpiration'),
|
||||
serverUrl: config.get('serverUrl'),
|
||||
NODE_ENV: process.env.NODE_ENV
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue