3
我使用流星,我有位於公共目錄中我的靜態文件傳輸:流星資源解釋爲樣式表,但使用MIME類型text/html
// Directory Structure
app
app/.meteor
app/server
app/client
app/packages
app/lib
app/public
app/public/styles
app/public/images
在我index.html
,我有這樣的:
<link rel="stylesheet" href="/public/styles/app.css"/>
我仍然得到這個錯誤:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3000/public/styles/app.css"
。
我該如何解決這個問題?流星公共目錄的正確用法是什麼?
我的樣式表是'<鏈接HREF = 「/客戶/樣式表/ bootstrap.css」 相對=「樣式表「>」,因爲建議將所有樣式表移動到此結構中。我怎樣才能擺脫同樣的錯誤? – a4xrbj1
謝謝!我希望在一個小時前看到這個! –
非常感謝! – Deano