Gokul
Gokul

Reputation: 84

Jhipster Angular 4 additional CSS & JS

How do I add a custom CSS to the jhipster 4 project. Currently when I add a CSS file to the content\css folder and import it in vendor.scss it does not get imported. Similarly we need to import a JS file.

Upvotes: 1

Views: 521

Answers (1)

Neamesis
Neamesis

Reputation: 744

You can edit the global.css file in src/main/webapp/content/css/global.css and import your CSS files (use the @import balise). Or you can import them in the vendor.ts file too.

For example I have a custom modal.scss file, in my global.scss file I've put : @import "modal";

For your JS files, they should be in src/main/webapp/app.

Hope it helps you.

Upvotes: 2

Related Questions