Career Tips and Tricks

Change Bower Default Directory And Folder

Bower is the client-side dependencies manager. The developer can easily manage their client-side dependencies with the Bower. By default when you install any package (e.g jQyery, Bootstrap etc) through Bower, then a bower_components folder will create in the project’s root directory and store all the files inside it. So the default directory of bower installation is ROOT and folder is bower_components
But if you want to change the Bower default directory and folder then you have to follow these following steps.

Remove bower_components (if exist) from your project root directory


Create .bowerrc file in your project’s root directory


Paste these code in .bowerrc file and modify DIRECTORY_NAME & FOLDER_NAME


Then finally run bower install command.

Hope these will helpful to configure your Bower directory and folder name.