Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Gulp
  3. wiredep

wiredep

MITJavaScriptv4.0.0

Automatically injects Bower package dependencies into your HTML, Jade, Sass, and other source files.

GitHubGitHub
1.1k stars140 forks0 contributors

What is wiredep?

Wiredep is a Node.js tool that automatically injects Bower package dependencies into your source code files. It reads your project's bower.json and dependency chain, then injects the correct script and link tags into placeholders in your HTML, Jade, Sass, and other files, ensuring proper load order.

Target Audience

Front-end developers and build engineers using Bower for package management who want to automate the injection of dependencies into their source files as part of their build process.

Value Proposition

Developers choose Wiredep because it eliminates the manual task of updating script tags when adding or updating Bower packages, integrates smoothly with popular build tools like Gulp and Grunt, and supports multiple file formats with extensive configuration options.

Overview

Wire Bower dependencies to your source code.

Use Cases

Best For

  • Automatically injecting Bower dependencies into HTML files
  • Integrating Bower with Gulp or Grunt build processes
  • Managing front-end library dependencies in Jade or Pug templates
  • Injecting CSS and JS from Bower packages into Sass or Less projects
  • Ensuring correct load order for Bower dependencies
  • Overriding Bower package main entries for non-standard packages

Not Ideal For

  • Projects using modern package managers like npm or Yarn instead of Bower
  • Applications built with module bundlers such as Webpack or Vite that handle dependencies through ES6 imports
  • Teams requiring dynamic dependency loading or server-side rendering with conditional asset injection

Pros & Cons

Pros

Automatic Order Injection

Reads Bower's dependency graph to inject scripts and styles in the correct load order, preventing manual errors as highlighted in the README's dependency resolution feature.

Broad File Support

Out-of-the-box support for HTML, Jade, Sass, Less, and other file types, with extensible configuration for custom formats, as shown in the fileTypes section.

Gulp and Grunt Integration

Seamlessly integrates with Gulp via streams and has a dedicated Grunt plugin, making it easy to incorporate into common build workflows, with examples provided.

Programmatic Flexibility

Offers an API to retrieve dependency paths without file modification, enabling custom build logic, as demonstrated in the programmatic access section.

Configuration Overrides

Allows overriding Bower package properties like main files, handling non-standard packages through project configuration or inline overrides, as detailed in the Bower Overrides part.

Cons

Dependent on Bower's Decline

Bower is no longer actively maintained, making Wiredep a legacy tool with limited future support and relevance in modern ecosystems, as implied by its reliance on Bower.

Package Metadata Issues

Frequently encounters Bower packages with missing or incorrect main/dependency fields, requiring manual fixes or verbose overrides, which the README admits as a common problem.

Static Injection Limitation

Only injects static tags into source files, unsuitable for modern applications with dynamic module loading, code splitting, or server-side rendering, as it lacks dynamic handling capabilities.

CLI Fragmentation

The command-line interface was split into a separate module (wiredep-cli), adding extra installation steps and potential confusion, as noted in the README's CLI section.

Frequently Asked Questions

Quick Stats

Stars1,143
Forks140
Contributors0
Open Issues25
Last commit9 years ago
CreatedSince 2013

Tags

#build-automation#dependency-management#frontend-tooling#nodejs#grunt-plugin#bower#asset-pipeline#gulp-plugin

Built With

N
Node.js

Included in

Gulp624
Auto-fetched 10 hours ago

Related Projects

gulp-injectgulp-inject

A javascript, stylesheet and webcomponent injection plugin for Gulp

Stars807
Forks90
Last commit3 years ago
gulp-userefgulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.

Stars700
Forks89
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub