我在讀http://sailsjs.org/#!documentation/assets,但我不知道如何使用.less文件。如何在sails.js中使用.less文件?
我把vairables.less和bootswatch.less無論是在資產/連接/風格/
我預計咕嚕會編譯這兩個文件,但它沒有,和我在瀏覽器控制檯,而不是錯誤:
GET http://localhost:5000/linker/styles/bootstrap-responsive.css 404 (Not Found) (index):14
GET http://localhost:5000/linker/styles/bootstrap.css 404 (Not Found) (index):15
GET http://localhost:5000/linker/js/jquery.js 404 (Not Found) (index):29
GET http://localhost:5000/linker/js/socket.io.js 404 (Not Found) (index):30
GET http://localhost:5000/linker/js/sails.io.js 404 (Not Found) (index):31
GET http://localhost:5000/linker/js/app.js 404 (Not Found) (index):32
GET http://localhost:5000/linker/js/bootstrap.js 404 (Not Found)
如果我刪除了兩個.less文件,它可以正常工作。 我在這裏錯過了什麼?
看起來是沒有得到填充你的.tmp目錄。 Grunt是否會拋出任何錯誤?用--verbose提起帆以檢查。 – sgress454
這是因爲在較少的文件中有一些錯誤。謝謝。詳細信息:Grunt :: >> NameError:.box-shadow在asset/linker/styles/bootswatch.less中未定義:21:2 >> 20 border-top-color:@ dropdown-divider-bg; >> 21 .box-shadow(none); >> 22} – Vadorequest
我真的認爲這種錯誤不應該顯示爲冗長。很難調試! – Vadorequest