awesomebox-bower

0.2.0 • Public • Published

awesomebox-bower

Bower plugin for awesomebox

Installation

Just add "awesomebox-bower" to the plugins array in your awesomebox.json file.

This package does not include bower. You can install bower globally with npm install -g bower.

Usage

In you html files you can use bower:component-name:filename in your link and script tags to reference files in your bower components.

For instance, if you're using jquery and your index.html file and it originally looked like this:

<!DOCTYPE html>
<html>
  <head>
    <script src="/components/jquery/jquery.min.js"></script>
  </head>
  <body>
  </body>
</html>

You could replace the script src like this:

<!DOCTYPE html>
<html>
  <head>
    <script src="bower:jquery:jquery.min.js"></script>
  </head>
  <body>
  </body>
</html>

License

Copyright (c) 2013 Matt Insler
Licensed under the MIT license.

Dependents (0)

Package Sidebar

Install

npm i awesomebox-bower

Weekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • mattinsler