Remove import rule from layout.less and slightly refactor buildAssetsConfig