Comments (8)
This is something that can be fixed, less/less.js#3205 fixed this problem, upgrade the LESS dependency to version 3.8.1
from deadsimple-less-watch-compiler.
@JamesMcIntosh - How to treat the "/" character has been an issue for all versions of Less. It's not a new problem for 3.x.
from deadsimple-less-watch-compiler.
Per @matthew-dean closing this issue since it's not something watcher can fix
from deadsimple-less-watch-compiler.
Just released an update @1.11.7
with less 3.8.1
. Hope this solves the problem.
from deadsimple-less-watch-compiler.
Awesome, I'll give it a test!
from deadsimple-less-watch-compiler.
This LESS version does fix the problem but it requires a command line option to enable the functionality, see the math section http://lesscss.org/usage/#less-options
Looks like updating the lessWatchCompilerUtils.js
compileCSS function adding
var math = lessWatchCompilerUtilsModule.config.math ? ' --math=' + lessWatchCompilerUtilsModule.config.math : '';
...
var command = 'lessc' + math + sourceMap + enableJsFlag + minifiedFlag + plugins + ' ' + JSON.stringify(file) + ' ' + outputFilePath;
and adding the option to less-watch-compiler.js
init() function
if (program.math) lessWatchCompilerUtils.config.math = program.math;
Should be enough to activate the functionality, I'll look at a PR.
from deadsimple-less-watch-compiler.
PR #77 adds the functionality and improves the setup of the unit tests to stop configuration accidentally spilling over between tests.
from deadsimple-less-watch-compiler.
You can now pass less options in 1.13.0
using --less-args
from deadsimple-less-watch-compiler.
Related Issues (20)
- A small inaccuracy in the sample configuration file: less-watch-compiler.config.json HOT 1
- Can't use `rgba()` to modify a var HOT 4
- Node.js v14 Warning: Accessing non-existent property ___ of module exports inside circular dependency HOT 2
- Feature: Option "recursive" HOT 4
- Feature: --run-initially flag to compile once and then watch HOT 2
- .less extension in @import is not optional in watch mode under some file structures HOT 1
- less-watch-compiler.config.json not being loaded HOT 3
- --config switch no longer works HOT 2
- --run-once parameter is not working anymore HOT 2
- Dependency Dashboard
- documentation on npm addition HOT 1
- Error if less file has space in name HOT 1
- Exlcude node_modules? HOT 1
- Unable to detect new directories
- Can't run "less-watch-compiler" command anymore HOT 2
- Feature: Option to include warning message in compiled CSS file
- less compilation with css-modules
- MaxListenersExceededWarning
- Remove unused dependency - opencollective ? HOT 12
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 deadsimple-less-watch-compiler.