Make sure scripts/styles work properly in preview