Skip to content

Commit

Permalink
Watch '.lessimport' files for changes (but don't parse them).
Browse files Browse the repository at this point in the history
'.lessimport' is now meaningful rather than just a suggestion in the docs.
  • Loading branch information
glasser committed Feb 12, 2013
1 parent cb1eb96 commit 78eb2a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/client/packages/less.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bundle.

{{#note}}
If you want to `@import` a file, give it another extension like `.lessimport`
If you want to `@import` a file, give it the extension `.lessimport`
to prevent Meteor from processing it independently.
{{/note}}

Expand Down
4 changes: 4 additions & 0 deletions packages/less/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Package.register_extension(
}
);

// Register lessimport files with the dependency watcher, without actually
// processing them.
Package.register_extension("lessimport", function () {});

Package.on_test(function (api) {
api.use('test-helpers');
api.add_files(['less_tests.less', 'less_tests.js'], 'client');
Expand Down

0 comments on commit 78eb2a3

Please sign in to comment.