soapbox/webpack/loaders/git-loader.js

9 wiersze
292 B
JavaScript
Czysty Zwykły widok Historia

2021-03-30 20:40:58 +00:00
const { resolve } = require('path');
// Forces recompile whenever the current commit changes
// Useful for generating the version hash in the UI
module.exports = function(source, map) {
this.addDependency(resolve(__dirname, '../../.git/logs/HEAD'));
this.callback(null, source, map);
};