fix customAutoLoad front end library loader
parent
d1d0ca6797
commit
519ab851e8
|
@ -238,10 +238,10 @@ module.exports = async (s,config,lang,app,io) => {
|
|||
if(name === 'libs'){
|
||||
switch(libName){
|
||||
case'js':
|
||||
s.customAutoLoadTree[blockPrefix + 'AssetsJs'].push(filename)
|
||||
s.customAutoLoadTree[blockPrefix + 'LibsJs'].push(filename)
|
||||
break;
|
||||
case'css':
|
||||
s.customAutoLoadTree[blockPrefix + 'AssetsCss'].push(filename)
|
||||
s.customAutoLoadTree[blockPrefix + 'LibsCss'].push(filename)
|
||||
break;
|
||||
case'blocks':
|
||||
s.customAutoLoadTree[blockPrefix + 'PageBlocks'].push(fullPath)
|
||||
|
@ -250,10 +250,10 @@ module.exports = async (s,config,lang,app,io) => {
|
|||
}else if(name === 'assets'){
|
||||
switch(libName){
|
||||
case'js':
|
||||
s.customAutoLoadTree[blockPrefix + 'LibsJs'].push(filename)
|
||||
s.customAutoLoadTree[blockPrefix + 'AssetsJs'].push(filename)
|
||||
break;
|
||||
case'css':
|
||||
s.customAutoLoadTree[blockPrefix + 'LibsCss'].push(filename)
|
||||
s.customAutoLoadTree[blockPrefix + 'AssetsCss'].push(filename)
|
||||
break;
|
||||
case'blocks':
|
||||
s.customAutoLoadTree[blockPrefix + 'PageBlocks'].push(fullPath)
|
||||
|
|
Loading…
Reference in New Issue