mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 10:17:01 +01:00 
			
		
		
		
	Leave a reminder about parcel's code splitting
This commit is contained in:
		
							parent
							
								
									97677244f5
								
							
						
					
					
						commit
						f5a454571b
					
				
					 3 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,8 @@
 | 
			
		|||
  "author": "Robbie Antenesse <dev@alamantus.com>",
 | 
			
		||||
  "license": "UNLICENCED",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "start": "parcel index.html"
 | 
			
		||||
    "start": "parcel index.html",
 | 
			
		||||
    "bundle": "parcel build index.html"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "parcel-bundler": "^1.12.3",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,6 +18,10 @@ function setupDetailsTabs() {
 | 
			
		|||
      const section = tab.innerText.toLowerCase();
 | 
			
		||||
      if (section === 'edit') {
 | 
			
		||||
        openEditModal();
 | 
			
		||||
        // import('../test.js').then(function (test) {
 | 
			
		||||
        //   // Render page
 | 
			
		||||
        //   test.aaa();
 | 
			
		||||
        // });
 | 
			
		||||
      } else {
 | 
			
		||||
        const isActive = tab.classList.contains('active');
 | 
			
		||||
        tabs.forEach(t => t.classList.remove('active'));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								src/test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								src/test.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
// https://parceljs.org/code_splitting.html
 | 
			
		||||
export function aaa () {console.log('aaa');};
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue