我想出了一个潜在的解决方案。Meteor 想要将所有东西都捆绑在它的目录中......所以让我们把依赖关系放在它的范围之外:)
具有以下目录结构:
.
|-- ext
| `-- bootstrap
`-- myapp
|-- .meteor
`-- ...
在我的 LESS 文件中,我执行以下操作:
@BOOTSTRAP: "../../ext/bootstrap/less";
@import "@{BOOTSTRAP}/reset.less";
这仍然不起作用,但我认为这归因于LESS bug。
不幸的是,Meteor 产生的错误信息在这里完全没用:
[[[[[ ~/Code/igl/igl ]]]]]
Running on: http://localhost:3000/
Errors prevented startup:
Exception while bundling application:
ReferenceError: err is not defined
at /usr/local/meteor/packages/less/package.js:33:62
at [object Object].add_file (/usr/local/meteor/app/lib/bundler.js:193:5)
at /usr/local/meteor/app/lib/bundler.js:97:16
at Array.forEach (native)
at Function.<anonymous> (/usr/local/meteor/app/lib/third/underscore.js:76:11)
at /usr/local/meteor/app/lib/bundler.js:96:11
at Array.forEach (native)
at Function.<anonymous> (/usr/local/meteor/app/lib/third/underscore.js:76:11)
at Object.add_files (/usr/local/meteor/app/lib/bundler.js:95:9)
at [object Object].on_use (/usr/local/meteor/app/lib/packages.js:136:11)
Your application is crashing. Waiting for file change.