[lib] better handling for front end assets