mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fix lint errors and add tests for @import (plugin)
This commit is contained in:
3
test/css/import-plugin.css
Normal file
3
test/css/import-plugin.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.test {
|
||||
result: OK;
|
||||
}
|
||||
5
test/less/import-plugin.less
Normal file
5
test/less/import-plugin.less
Normal file
@@ -0,0 +1,5 @@
|
||||
@import (plugin) "import/plugins/test";
|
||||
|
||||
.test {
|
||||
result : test()
|
||||
}
|
||||
7
test/less/import/plugins/test.js
Normal file
7
test/less/import/plugins/test.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
install : function( less, pluginManager ) {
|
||||
less.functions.functionRegistry.add( "test", function() {
|
||||
return new less.tree.Anonymous( "OK" );
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user