All Projects → brunch → less-brunch

brunch / less-brunch

Licence: other
Adds LESS support to Brunch

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to less-brunch

typescript-brunch
Adds TypeScript support to Brunch
Stars: ✭ 27 (+92.86%)
Mutual labels:  brunch, brunch-plugin, brunch-compiler
Skin
Pure CSS framework designed & developed by eBay for a branded, e-commerce marketplace.
Stars: ✭ 126 (+800%)
Mutual labels:  less, stylesheets
Prejss
Get the power of PostCSS with plugins in your JSS styles. 🎨 Just put CSS into JS and get it as JSS object.
Stars: ✭ 238 (+1600%)
Mutual labels:  less, stylesheets
styless
Style your components declaratively with familiar less syntax
Stars: ✭ 64 (+357.14%)
Mutual labels:  less
ResetCSS
Reset CSS Stylesheet to reduce browser inconsistencies.
Stars: ✭ 17 (+21.43%)
Mutual labels:  stylesheets
RelaxUI
🥉🥉基于Vue2的UI组件库
Stars: ✭ 96 (+585.71%)
Mutual labels:  less
brunch-wordpress-theme
WordPress Starter Theme That Uses Brunch, Bower, And Bootstrap
Stars: ✭ 15 (+7.14%)
Mutual labels:  brunch
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (-7.14%)
Mutual labels:  less
awesome-quickapp
🛠 A curated list of awesome quickapp tutorials, articles, projects and resources.
Stars: ✭ 41 (+192.86%)
Mutual labels:  less
manage-demo
后台管理系统模版
Stars: ✭ 19 (+35.71%)
Mutual labels:  less
mailspring-matcha-theme
Matcha theme for Mailspring
Stars: ✭ 32 (+128.57%)
Mutual labels:  less
vue-antd-admin
基于vue3.0 + vue-cli4.0 + vue-router4.x + vuex4.x + ant-design-vue2.x开发的后台管理系统模板,包含权限路由、权限按钮、流程配置、个人中心等基础功能
Stars: ✭ 57 (+307.14%)
Mutual labels:  less
react-brunch-demo
An ES6 React & Redux application compiled by Brunch and linted with Eslint.
Stars: ✭ 31 (+121.43%)
Mutual labels:  brunch
React-Whole-barrels
webapck + react + react-router +dva + es6 + less + antd 实现的脚手架 👌👌
Stars: ✭ 23 (+64.29%)
Mutual labels:  less
webpack-typescript-react
Webpack 5 boilerplate with support of most common loaders and modules (see tags and description)
Stars: ✭ 185 (+1221.43%)
Mutual labels:  less
simple react startkit
This is a simple react boilerplate, without complex dependencies(eg. redux or router), this project can help you start the react project in seconds.
Stars: ✭ 109 (+678.57%)
Mutual labels:  less
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+335.71%)
Mutual labels:  less
OS-Open-Zoomstack-Stylesheets
Cartographic Stylesheets for OS Open Zoomstack
Stars: ✭ 36 (+157.14%)
Mutual labels:  stylesheets
vue-tsx-admin
基于typscript+jsx+vue+ant-design-vue+ant-design-pro的中后台模板
Stars: ✭ 53 (+278.57%)
Mutual labels:  less
eadmin
eadmin - 极致用户体验与极简开发并存的开箱即用的后台UI框架
Stars: ✭ 258 (+1742.86%)
Mutual labels:  less

less-brunch

Adds LESS support to brunch.

Usage

npm install --save-dev less-brunch

Options

Pass options as per lessc's documentation in your brunch-config, e.g. print source-file references in output by setting dumpLineNumbers.

module.exports = {
  // ...
  plugins: {
    less: {
      dumpLineNumbers: 'comments' // other values: 'mediaquery', 'all'
      // ... other options
    }
  }
};

Note that some options are overwritten: paths and filename are set by the plugin. In production mode line numbers are suppressed.

CSS Modules

Starting Brunch 2.6, you can use CSS Modules with less-brunch. To enable it, change your config to:

module.exports = {
  // ...
  plugins: {
    less: {
      modules: true
    }
  }
};

Then, author your styles like you normally would:

.title {
  font-size: 32px;
}

And reference CSS class names by requiring the specific style into your javascript:

var style = require('./title.less');

<h1 className={style.title}>Yo</h1>

Note: enabling cssModules does so for every stylesheet in your project, so it's all-or-nothing. Even the files you don't require will be transformed into CSS modules (aka will have obfuscated class names, like turn .title into ._title_fdphn_1).

License

The MIT License (MIT)

Copyright (c) 2012 - 2015 Paul Miller (http://paulmillr.com) & Elan Shanker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].