Fix preval cache issues
This commit is contained in:
8
webpack/loaders/git-loader.js
Normal file
8
webpack/loaders/git-loader.js
Normal file
@ -0,0 +1,8 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user