All Projects → just-boris → Less Plugin Glob

just-boris / Less Plugin Glob

Licence: mit
Globbing support for LESS

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Less Plugin Glob

Openunison Qs Kubernetes
Kubernetes Quickstart
Stars: ✭ 30 (-57.14%)
Mutual labels:  less
Forpda
Alternative client for 4pda.ru
Stars: ✭ 43 (-38.57%)
Mutual labels:  less
Govicons
🇺🇸 US Government themed icons and CSS toolkit
Stars: ✭ 60 (-14.29%)
Mutual labels:  less
Angular Music Player
Angular7.2.x音乐播放器,NGRX,with TypeScript
Stars: ✭ 38 (-45.71%)
Mutual labels:  less
Csspin
CSS Spinners and Loaders - Modular, Customizable and Single HTML Element Code for Pure CSS Loader and Spinner
Stars: ✭ 1,019 (+1355.71%)
Mutual labels:  less
Rocssti
RÖCSSTI : pour démarrer vos CSS avec la patate !
Stars: ✭ 46 (-34.29%)
Mutual labels:  less
Bootstrap Blog Template
An awesome blog template constructed using Twitter Bootstrap 3
Stars: ✭ 29 (-58.57%)
Mutual labels:  less
Ghosttheme Stockholm
👻 📝 ✨ Clean Ghost theme with advanced features & customization.
Stars: ✭ 67 (-4.29%)
Mutual labels:  less
React Redux Antdesign Webpack Starter
react + redux + ant design + react-router 4 + webpack 4 starter
Stars: ✭ 44 (-37.14%)
Mutual labels:  less
Maxpress
MaxPress:MarkDown+Python实现微信公众号一键排版
Stars: ✭ 56 (-20%)
Mutual labels:  less
Less Plugin Lists
List/Array manipulation for Less
Stars: ✭ 39 (-44.29%)
Mutual labels:  less
React Antd Todo
A simple todo list app built with React, Redux and Antd - Ant Design
Stars: ✭ 42 (-40%)
Mutual labels:  less
Vue2 Web
酷我音乐—vue2、vue-router2、webpack2框架
Stars: ✭ 54 (-22.86%)
Mutual labels:  less
Hexo Theme Snippet
Snippet 简洁而不简单,也许是一款你寻找已久的hexo主题
Stars: ✭ 977 (+1295.71%)
Mutual labels:  less
Run When
Run tasks based on "Git diff" changes 🏃 ➕ ➖
Stars: ✭ 63 (-10%)
Mutual labels:  glob
Mailspring Nord Theme
A Nordic Theme for Mailspring!
Stars: ✭ 30 (-57.14%)
Mutual labels:  less
Vue Spa
vue-spa : vue + vue-router + axios + vuex + vux 快速成型移动端项目,直接使用。欢迎star
Stars: ✭ 46 (-34.29%)
Mutual labels:  less
Fast Glob
🚀 It's a very fast and efficient glob library for Node.js
Stars: ✭ 1,150 (+1542.86%)
Mutual labels:  glob
Is Glob
If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. 55+ million downloads.
Stars: ✭ 63 (-10%)
Mutual labels:  glob
Vue3 Admin
👏vue3.0后台管理框架👏基于vue-cli4+compositionAPI+vue-router4
Stars: ✭ 54 (-22.86%)
Mutual labels:  less

less-plugin-glob

Globbing support in Less-imports.

Travis status npm version David

This plugin allows to import multiple files using glob expressions. Add this plugin and you can write import like this

@import "common/**";
@import "themes/**";

How to add plugins?

Section about plugins in Less documentation

Examples

lessc usage

  1. npm install -g less less-plugin-glob
  2. Create file with import by glob, something like @import "includes/**"
  3. Run lessc --glob styles.less styles.css and enjoy whole your styles concated by one line

Programmatic usage

  1. Install plugin locally npm install less-plugin-glob
  2. Import it and add into plugins section of options.
less.render(lessString, { plugins: [require('less-plugin-glob')] })

If you are using Gulp or Grunt or something else, you can import and add plugin by same way as well.

Usage with webpack and less-loader

When using webpack and less-loader >= 4.0, it's important to make sure that less-loader is configured not to use its webpack resolver, which is now active by default. Otherwise, less-plugin-glob won't run at all because less-loader applies a LESS plugin that passes all queries to the webpack resolver (bypassing this plugin). To make less-loader revert to the LESS resolver, specify the paths loader option:

{
  loader: "less-loader",
  options: {
    plugins: [lessPluginGlob],
    paths: [path.resolve(__dirname, "path/to/my/styles")] // This is the important part!
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].