less

using less with symfony2 on windows

烂漫一生 提交于 2019-12-08 04:30:38
问题 Im trying to get Less with assetic working while developing on a windows OS. Im loading an existing project of which I can alter the config.yml and parameters.yml files as necessary. steps so far: I have installed Node.js via the msi installer I have used npm and installed less gloabally config.yml assetic: debug: %kernel.debug% use_controller: false bundles: [ FOSUserBundle ] filters: less: node: "C:\\Program Files (x86)\\nodejs\\node.exe" #/usr/local/bin/node node_paths: [C:\Users\matt

Development Workflow - Bootstrap (Less), Bower and Grunt

别来无恙 提交于 2019-12-08 03:33:11
问题 I am trying to step up my game as far as my folder structure and workflow is considered. I have recently discovered that front end package management and automation of tasks are key to improve speed, decreasing dev time, decrease file size and increase profit. My issue is I am not too sure what the best method of using these tools are. I have a builds folder, which includes a dev and prod folder. My components are outside this folder in the bower_components folder. I usually customise

Problems generating source map files with current Gulp setup

可紊 提交于 2019-12-08 03:28:06
问题 I have set up a gulpfile.js in my project. It's working pretty nicely mostly, except when it comes to generating source maps, especially for the LESS files it compiles to CSS . I have put together a gist which contains all the files in my gulp setup. Please note that other than the gulp file.js itself, all the other files are inside a directory called tasks . The problems I am having are that I had to disable the autoprefixer in development because the source maps that were being generated

LESS differences between mixin and extend [closed]

落花浮王杯 提交于 2019-12-08 02:06:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . As stated in the title, I'm looking for a clear explanation regarding the differences between mixin and extend in LESS . Code examples & live demo (i.e. on codepen.io) are more than welcome. 回答1: Before the differences, it is important to delve into what mixins and extend are

Break out of scope

允我心安 提交于 2019-12-08 01:39:16
问题 Ideally, I would like to do this : @w: 4px; @media (max-width:900px) { @r: 3px; } @media (min-width:900px) { @r: 5px; } .myclass { border-radius: @w + @r; } This doesn't compile because @r isn't defined in the scope where I define .myclass . The obvious solutions are either to define .myclass inside the @media blocs or to copy the @media queries inside the definition of .myclass . But as soon as you use @r in many classes, both solutions are messy and involve many duplications. Is there a

Node js express.compiler error

无人久伴 提交于 2019-12-07 21:00:30
问题 I am currently working on an express.js Webapp, Im working off the boilerplate app that comes with MS Webmatrix. I am able to run the app on my computer but when i push to nodejitsu or use another computer from which i got the app from git i get an error preventing server start. app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] }) ^ TypeError: Object function createApplication() { var app = connect(); utils.merge(app, proto); app.request = { __proto__: req }; app

How to sperates the less file in a css file with webpack 2?

主宰稳场 提交于 2019-12-07 20:44:43
问题 I can compile the less on the page within the <style></style> by webpack2. but I can't compile the less file into a CSS file. webpack.config.js: var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var ENV = process.env.NODE_ENV; var port = '10101'; var commonAttr = ['common', 'markerFactory', 'sceneTransform', 'sparFactory', 'upload']; var vendorArr = []; for (var i = 0, l = commonAttr.length; i < l; i++) { vendorArr

Git: Storing but not pulling LESS files

╄→гoц情女王★ 提交于 2019-12-07 18:14:19
问题 I recently started working with LESS, and as I did some research to automated builders like Jenkins and Grunt, it seemed a common piece of advice was not to store LESS files on the repo, or not to have them on the live server, just the compiled CSS. So I was hoping to get some advice on this. It seems that as LESS files are part of the project, storing them is necessary. But it makes sense not to have extra, random files on the live server. Deleting them myself seems the wrong way to do it

Image urls for Rails 4 + Less not including the hash

大憨熊 提交于 2019-12-07 17:24:48
问题 I have a Rails 4 application and am using the less-rails gem. In main.css.less , I add a background image to the site using: body { background-image: image-url("background.jpg"); } Everything works fine locally, but when I push up to my server with precompiled assets, the image url is not updating to include the hash. That is, the image now lives at public/assets/background-074c0b767cd8cfb2da93b37ea3596326.jpg but my css file still says url(/assets/background.jpg) . The link below seemed very

How to mix multiple background with LESS

可紊 提交于 2019-12-07 16:59:17
问题 I have a small question... Is there any option to mix multiple background with LESS? I have this setup for background in LESS: .background_centered( @url, @position_horizontal: center, @position_vertical: top, @background-repeat: no-repeat, @transparency: transparent) { background: @arguments; } now: i need to write in out put style with multiple background, so i do this: .class { .background_centered(url('../img/war_top_baner_gp.png'),url('../img/war_header_bg.png')); } something is not