Fixed webpack config code
This commit is contained in:
		
							parent
							
								
									86e617a839
								
							
						
					
					
						commit
						f7ca205f38
					
				@ -14,12 +14,9 @@ const entryPath = join(settings.source_path, settings.source_entry_path);
 | 
				
			|||||||
const packPaths = sync(join(entryPath, extensionGlob));
 | 
					const packPaths = sync(join(entryPath, extensionGlob));
 | 
				
			||||||
const entryPacks = [...packPaths, ...localePackPaths].filter(path => path !== join(entryPath, 'custom.js'));
 | 
					const entryPacks = [...packPaths, ...localePackPaths].filter(path => path !== join(entryPath, 'custom.js'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const customApplicationStyle = resolve(join(settings.source_path, 'styles/custom.scss'));
 | 
					 | 
				
			||||||
const originalApplicationStyle = resolve(join(settings.source_path, 'styles/application.scss'));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const themePaths = Object.keys(themes).reduce(
 | 
					const themePaths = Object.keys(themes).reduce(
 | 
				
			||||||
  (themePaths, name) => {
 | 
					  (themePaths, name) => {
 | 
				
			||||||
    themeData = themes[name];
 | 
					    const themeData = themes[name];
 | 
				
			||||||
    themePaths[`themes/${name}`] = resolve(themeData.pack_directory, themeData.pack);
 | 
					    themePaths[`themes/${name}`] = resolve(themeData.pack_directory, themeData.pack);
 | 
				
			||||||
    return themePaths;
 | 
					    return themePaths;
 | 
				
			||||||
  }, {}
 | 
					  }, {}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user