Is it possible to run javascript at compile time using plovr? (perhaps defining a variable in the config file).
For example, I would like a function that returns the time the script was compiled, something like this:
function compiledAt(){
return #Date.now(); // #Date.now() to be processed at compile-time
}
So that after compilation, it would look like this:
function compiledAt(){
return 1374580397271;
}
A few months later, I can update that it is not possible to do this using only javascript and Plovr.
Other options include:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.