Git Product home page Git Product logo

Comments (8)

JamesMcIntosh avatar JamesMcIntosh commented on August 18, 2024 1

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.

matthew-dean avatar matthew-dean commented on August 18, 2024

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

jonycheung avatar jonycheung commented on August 18, 2024

Per @matthew-dean closing this issue since it's not something watcher can fix

from deadsimple-less-watch-compiler.

jonycheung avatar jonycheung commented on August 18, 2024

Just released an update @1.11.7 with less 3.8.1. Hope this solves the problem.

from deadsimple-less-watch-compiler.

JamesMcIntosh avatar JamesMcIntosh commented on August 18, 2024

Awesome, I'll give it a test!

from deadsimple-less-watch-compiler.

JamesMcIntosh avatar JamesMcIntosh commented on August 18, 2024

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.

JamesMcIntosh avatar JamesMcIntosh commented on August 18, 2024

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.

jonycheung avatar jonycheung commented on August 18, 2024

You can now pass less options in 1.13.0 using --less-args

from deadsimple-less-watch-compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.