https://blog.csdn.net/yangbingbinga/article/details/61417689
Its not related to F7. Webpack can do that for you Here an example: