Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fis-parser-less-import

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-parser-less-import

Import less lib before parsing.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

fis-parser-less-import

Import less lib before parsing.

Usage

fis-conf.js中,将其声明为lessparser之一。请注意,fis-parser-less-import必须声明在真正的less-parser(如此例中的fis-parser-less)之前:

fis.config.merge({
    modules: {
        parser: {
            less : ['less-import', 'less']
        }
    },
    settings: {
        parser: {
            'less-import': {
                file: 'mixin.less'
            }
        }
    }
};

Setting

  • file{String}: import的文件地址

FAQ

这是一个less-parser吗?

不是。严格来说,这是一个less预处理工具,原理是在所有的less文件头部添加@import。由于fis目前并未提供针对预处理器的preprocessor接口,只能通过顺序执行多个parser的方式进行。

配置中的file相对什么路径?

取决于你的less-parser的配置。less本身定义了paths配置项来定义@import的查找位置,如果你是用的fis-parser-less,会依次尝试目标文件目录、项目目录以及根目录(绝对路径)。

Keywords

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc