Comments (10)
yeah that's a much better description
from less-docs.
I agree. Though perhaps we can provide actual situations where both would be used. Nothing too verbose, just some clear delineation between the two in order to make the choice obvious. I would literally have two lists, side by side, titled "Should I compile?" and "Should I run live?" and outline reasons for each.
We've encountered enough people producing dynamic libraries/frameworks/sites that listing them will help both newcomers and people looking to do cutting edge dynamic stuff.
from less-docs.
Great ideas, IMO you should just create exactly what you're saying right here and we'll build on it. The docs will be all in markdown so this kind of conversation will be a good start
from less-docs.
Okay, I'll start this off. Correct me if any of the points aren't true enough:
Should I compile?
- I'm in production and I don't want LESS taking extra time to compile my stylesheets (every millisecond counts)
- I want to see the generated CSS so I can optimize my LESS
- I want to further minify my CSS after it's compiled
- I want to post-process or trigger other build steps*** needs work
Should I run live?
- I'm in development and don't want to run extra tools while I test
- I'm working in a remote sandbox that won't let me compile but I don't want to keep uploading compiled CSS files while I test
- I need to pack everything into one HTML file for templating reasons
- I'm creating a dynamic templating system that needs to update on the fly
- I'm comfortable with only supporting the most recent browser versions (less.js does not attempt to remain compatible with older browsers)
from less-docs.
I'm seeing the "intended usage" quoted in response to a few issues raised. (e.g. less/less.js#1654).
From what I'm observing it should clearly say:
"If you are using LESS in production you should NOT use 'less.js' and you should be compiling your stylesheets."
...and maybe even go as far to say, "If you decide to use 'less.js' in production, you do so at your own risk."
I am a bit saddened by the lack of enthusiasm in encouraging the "sensible" usage of less.js in production because I see this as being LESS's strongest and most unique feature in comparison to other stylesheet languages.
from less-docs.
That's why I think my suggested "when should I compile, when should I run live/less.js?" side-by-side comparison is crucial. It allows people to understand the pros and cons of both before they choose.
We've seen a lot of recent issues from people who are basically just suffering from a bad workflow complaining about less.js
from less-docs.
We've seen a lot of recent issues from people who are basically just suffering from a bad workflow complaining about less.js
Indeed. I have to be blunt thought, from the time I first heard about less.js (2 years ago), I remember reading time and time and time again not to compile in the browser unless you absolutely needed to. This has never been hidden information. At this point we're splitting hairs on how to say the same thing differently - but no matter how we say it, people who don't RTFM will come here and complain about the same point over again.
from less-docs.
.. and I'm not trying to be harsh, it just seems like the reality of it
from less-docs.
I know that when I got into LESS, the first instructions on the site that I saw were "here's how easy it is to add in the browser". This was important as it gave me a low barrier to entry, but there was no clear instructions on how to deal with production. As a result, one site I built several years ago still has less.js being used in production.
Now that so many handy desktop compilers and workflow tools like Grunt exist, illustrating those early on the website, right next to less.js instructions would go a long way to preventing newcomers from travelling too far down the wrong path.
Hell, let's make a featurette video.
from less-docs.
illustrating those early on the website, right next to less.js instructions would go a long way to preventing newcomers from travelling too far down the wrong path.
Agreed. Let's do that. The featurette video is a good idea too. I've wanted to get code mirror hooked up so that users can play with the code examples too.
from less-docs.
Related Issues (20)
- A simple less-include triggers a deprecated-warning into the console - how to solve this issue?
- A part of Extend document is error at the "Selector Interpolation with Extend".
- #kiko
- 数学运算:less编译为css是,除法没有被编译成功,这是一个bug嘛? HOT 1
- HTTPS certificate is invalid for lesscss.org HOT 1
- Permutation of 4 is 24, not 16 HOT 1
- Remove IE11 as a supported browser HOT 1
- Overview > Operations > Conversion is impossible example giving different results
- Typo : In CDN
- Overview -> Operatins the division example is misleading HOT 3
- A plan for Chinese doc. HOT 6
- ci: auto deploy lesscss.org
- Error getting started with LESS HOT 1
- Official website problem
- Guide link is broken HOT 2
- Migrating from v3.x to v4.x HOT 2
- 此less脚本 将 less 转 css 时,会导致某些属性无法获取 HOT 1
- `default()` guard should be documented / mentioned with mixin documentation
- Mismatch between Expected and Actual Output in Official Documentation Example
- Math expressions directly assigned to a CSS custom property are not computed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from less-docs.