我已經想出了一個潛在的解決方案。流星希望一切都捆綁在其目錄...所以,讓我們把它的範圍:)
用下面的目錄結構之外的依賴關係:
.
|-- ext
| `-- bootstrap
`-- myapp
|-- .meteor
`-- ...
在我的LESS文件,我做了以下內容:
@BOOTSTRAP: "../../ext/bootstrap/less";
@import "@{BOOTSTRAP}/reset.less";
這仍然不起作用,但我認爲這歸因於a LESS bug。
不幸的是由流星所產生的錯誤信息是完全無用的位置:
[[[[[ ~/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.
來源
2012-04-14 10:12:27
lvh
FWIW我剛剛結束了黑客變通這樣的:'貓PATH_TO_BOOTSTRAP /更少/ * | grep -v import | egrep -v \^//> bootstrap-concat.less'。作爲罪惡醜陋,但作品的魅力,並讓我導入一切:) – lvh 2012-04-14 15:29:59
最新的流星包括一個boostrap包,不知道如果這可以解決你的問題,但可能如果你做流星更新,然後流星添加boostrap你現在應該有在您的應用上推送twitter。 – climboid 2012-04-29 20:55:12
使用LESS的優勢很容易定製 - 您知道Meteor bootstrap包是否可以從LESS動態編譯? – 2012-10-25 00:05:35