parcel-plugin-build-time
v1.0.2
Published
Parcel plugin to add information about build time to env variable
Downloads
4
Readme
parcel-plugin-build-time
Parcel plugin to read information about build time from env variable.
Install
# npm
npm i -D parcel-plugin-build-time
# or yarn
yarn add -D parcel-plugin-build-time
How to use
This plugin puts the build date in an environment variable named BUILD_TIME
.
you can retrive it in js like this: process.env.BUILD_TIME
javascript
console.log("build date: " + process.env.BUILD_TIME);
output
build date: Mon Apr 20 2020 15:58:34 GMT+0200 (Central European Summer Time)