Use htmx.js instead of htmx.min.js
This wastes 30 kB gzipped, which I think is acceptable in exchange for having method names in the debugger.
This commit is contained in:
		
							parent
							
								
									b1b9124052
								
							
						
					
					
						commit
						a459ee1d1c
					
				
					 4 changed files with 5352 additions and 92 deletions
				
			
		| 
						 | 
				
			
			@ -70,7 +70,7 @@ html(lang="en")
 | 
			
		|||
          document.styleSheets[0].insertRule(t)
 | 
			
		||||
        })
 | 
			
		||||
      })
 | 
			
		||||
    script(src=rel("/static/htmx.min.js"))
 | 
			
		||||
    script(src=rel("/static/htmx.js"))
 | 
			
		||||
    //- Error dialog
 | 
			
		||||
    aside.s-modal#server-error(aria-hidden="true")
 | 
			
		||||
      .s-modal--dialog
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,12 +49,12 @@ as.router.get("/static/stacks.min.css", defineEventHandler({
 | 
			
		|||
	}
 | 
			
		||||
}))
 | 
			
		||||
 | 
			
		||||
as.router.get("/static/htmx.min.js", defineEventHandler({
 | 
			
		||||
as.router.get("/static/htmx.js", defineEventHandler({
 | 
			
		||||
	onBeforeResponse: compressResponse,
 | 
			
		||||
	handler: async event => {
 | 
			
		||||
		handleCacheHeaders(event, {maxAge: 86400})
 | 
			
		||||
		defaultContentType(event, "text/javascript")
 | 
			
		||||
		return fs.promises.readFile(join(__dirname, "static", "htmx.min.js"), "utf-8")
 | 
			
		||||
		return fs.promises.readFile(join(__dirname, "static", "htmx.js"), "utf-8")
 | 
			
		||||
	}
 | 
			
		||||
}))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										5261
									
								
								src/web/static/htmx.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5261
									
								
								src/web/static/htmx.js
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										1
									
								
								src/web/static/htmx.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								src/web/static/htmx.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue