2
我用了喲角Fullstack發生器(https://github.com/DaftMonk/generator-angular-fullstack),並啓動一個應用程序,然後試圖通過這樣做,從亭子安裝Toastr -如何包括庫文件(CSS/JS)在角fullstack基於應用
bower install angular-toastr
現在我想添加toastr css和js文件。它們都位於
bower_components/angular-toastr/dist
現在怎麼辦我有他們在我的當前項目,使它們包含在dist文件夾時,我建立使用咕嚕的應用。
的文件夾結構如下 -
├── client
│ ├── app - All of our app specific components go in here
│ ├── assets - Custom assets: fonts, images, etc…
│ ├── components - Our reusable components, non-specific to to our app
│
├── e2e - Our protractor end to end tests
│
└── server
├── api - Our apps server api
├── auth - For handling authentication with different auth strategies
├── components - Our reusable or app-wide components
├── config - Where we do the bulk of our apps configuration
│ └── local.env.js - Keep our environment variables out of source control
│ └── environment - Configuration specific to the node environment
└── views - Server rendered views
我不太瞭解bundle,我不確定我的默認grunt文件是否使用它。因此,如果我將任務粘貼到grunt文件中並使用像bower這樣的標籤:js和endbower會是正確的方式嗎? – DeadMan
我對bundle並不瞭解,我不確定我的默認grunt文件是否使用它。因此,如果我將任務粘貼到grunt文件中並使用像bower這樣的標籤:js和endbower會是正確的方式嗎? – DeadMan
是的,沒錯。你不必使用捆綁。只是這些標籤涼亭:js,endbower你想要你的js/css引用的文件被引用,你應該很好。投票,如果它幫助,乾杯! – ThiagoPXP