Created
May 12, 2016 18:33
-
-
Save stephenplusplus/05649c7946fac9818cab6a805ad45443 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "play-1463077577", | |
| "main": "index.js", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Stephen Sawchuk <sawchuk@gmail.com>" | |
| ], | |
| "description": "", | |
| "moduleType": [], | |
| "license": "MIT", | |
| "homepage": "", | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", | |
| "bower_components", | |
| "test", | |
| "tests" | |
| ], | |
| "dependencies": { | |
| "jquery": "~2.2.3" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- bower:js --> | |
| <!-- endbower --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| var fs = require('fs') | |
| var wiredep = require('wiredep') | |
| wiredep({ | |
| src: './index.html', | |
| fileTypes: { | |
| html: { | |
| replace: { | |
| js: function(filePath) { | |
| var fileIsMinified = filePath.indexOf('min.js') > -1 | |
| if (!fileIsMinified) { | |
| var possibleMinFilePath = filePath.replace('.js', '.min.js') | |
| if (fs.existsSync(possibleMinFilePath)) { | |
| filePath = possibleMinFilePath | |
| } | |
| } | |
| return '<script src="' + filePath + '"></script>' | |
| } | |
| } | |
| } | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "play-1463077577", | |
| "version": "0.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "keywords": [], | |
| "author": "Stephen Sawchuk <sawchuk@gmail.com>", | |
| "license": "MIT", | |
| "dependencies": { | |
| "wiredep": "^4.0.0" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment