core&ui: remove static manifest

This commit is contained in:
undefined committed 2021-09-15 17:28:57 +08:00
1 parent 10c3a62168
commit d7412fcc1e
18 files changed
+50 -124

No files matched your search

@@ -115,9 +115,6 @@ nunjucks.runtime.memberLookup = function memberLookup(obj, val) {
const env = new Nunjucks();
env.addGlobal('static_url', (assetName) => {
const cdnPrefix = process.env.DEV ? '/' : global.Hydro.model.system.get('server.cdn');
if (global.Hydro.ui.manifest[assetName]) {
return `${cdnPrefix}${global.Hydro.ui.manifest[assetName]}`;
}
return `${cdnPrefix}${assetName}`;
});
// eslint-disable-next-line no-eval