add asset helper for replace path in css, improve js asset generation exception