且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Bower在javascript项目中包含私有本地文件

更新时间:2023-09-30 15:51:34

下面的代码对我在Ubuntu上使用Bower 1.2.8无效。

The code below didn't work for me using Bower 1.2.8 on Ubuntu.

美化: /path/to/beautify.js

什么是工作使用: beautify: ./path/to/beautify.js 。这样,路径便指向bower.json所在目录中的相对文件。

What did work was using: "beautify": "./path/to/beautify.js". This way the path is pointing to the file relative from the directory where bower.json resides.