Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
336 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // https://github.com/less/less.js/issues/3533
|
---|
| 2 | console.log('Testing ES6 imports...')
|
---|
| 3 |
|
---|
| 4 | import less from '..';
|
---|
| 5 | let lessRender = less.render;
|
---|
| 6 |
|
---|
| 7 | // then I call lessRender on something
|
---|
| 8 | let y = lessRender(`
|
---|
| 9 | body {
|
---|
| 10 | a: 1;
|
---|
| 11 | b: 2;
|
---|
| 12 | c: 30;
|
---|
| 13 | d: 4;
|
---|
| 14 | }`, {sourceMap: {}}, function(error, output) {
|
---|
| 15 | if (error)
|
---|
| 16 | console.error(error)
|
---|
| 17 | }) |
---|
Note:
See
TracBrowser
for help on using the repository browser.