mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix: crxjs plugin issues
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import fs from 'fs';
|
||||
|
||||
export default function touchGlobalCSSPlugin() {
|
||||
return {
|
||||
name: 'touch-global-css',
|
||||
handleHotUpdate({ modules }) {
|
||||
// log all of the staticImportedUrls
|
||||
const importers = modules[0]._clientModule.importers
|
||||
importers.forEach((importer) => {
|
||||
if (importer.file.includes('.css')) {
|
||||
console.log("touching", importer.file)
|
||||
fs.utimesSync(importer.file, new Date(), new Date())
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user