# fis-preprocessor-components **Repository Path**: mirrors_fex-team/fis-preprocessor-components ## Basic Information - **Project Name**: fis-preprocessor-components - **Description**: 给 components 添加短路径功能。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README fis-preprocessor-components =========================== 给 components 添加短路径功能。 默认短路径不支持跨模块,如果要跨模块,请像这样配置 paths。 ```javascript fis.config.set('settings.preprocessor.components.paths', { 'jquery': 'common:components/jquery/jquery.js' }); ``` paths 也可以是 dir 如: ```javascript fis.config.set('settings.preprocessor.components.paths', { 'bootstrap': 'common:components/bootstrap/' }); ``` 这样 `require('bootstrap/button.js')` 的时候,实际上是 `require('common:components/bootstrap/button.js')`