Actually, contrary to the accepted answer, this works fine. I am in Chrome 19, Mac OS X, context is a Chrome extension. I experienced the same problem. I started experimenting with different ways to enable it by disabling text in rel, type, href, etc.
This works, the key is href = "css / styles.css (use .css, not.less):
<link rel="stylesheet/less" type="text/css" href="css/styles.css" /> <script src="libs/less-1.3.0.min.js" type="text/javascript"></script>
The styles are beautifully applied, and the JavaScript console in Chrome says the following (slightly legible for clarity):
less: parsed /css/styles.css successfully. less-1.3.0.min.js:8 less: css generated in 33ms
I know that one of them should not use the compiled CSS client side, but in the context of the Chrome extension there is no alternative other than regular CSS (eww). You cannot request a stylesheet from the server either because the client will be offline from time to time.
Michael Johansen Jul 07 2018-12-12T00: 00Z
source share