-1
我有一個快速項目設置。我使用Pug作爲視圖引擎。帕格文件未加載CSS
我有我的app.js以下行,
app.set('views', path.join(__dirname, './views'));
app.set('view engine', 'pug');
app.use(express.static(path.join(__dirname, './public')));
,我有我的看法index.pug以下,
link(rel='stylesheet', href='/stylesheets/style.css', type='text/css')
link(rel='stylesheet', href='/stylesheets/boostrap.min.css', type='text/css')
的CSS文件中正確的文件夾(公共/樣式表),但是當我加載應用程序時,視圖似乎不會加載CSS文件。
其目錄和所有代碼的完整的項目可以發現here
哇,我是個白癡 –