Created
February 13, 2015 08:03
-
-
Save cyocun/ae03603e202c6b3bb36a to your computer and use it in GitHub Desktop.
bower.jsonからかってにやってくれるアレ。
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
| // これ -> https://www.npmjs.com/package/wiredep | |
| // bower.jsonに変更があったらhtmlの | |
| // <!-- bower:js --> | |
| // <!-- endbower --> | |
| //の中にパスを書き込んでくれる。 | |
| // scssならscssの中の下記部分 | |
| // // bower:scss | |
| // // endbower | |
| gulp.task('wiredep', function () { | |
| var wiredep = require('wiredep').stream; | |
| gulp.src('app/assets/css/*.scss') | |
| .pipe(wiredep()) | |
| .pipe(gulp.dest('app/assets/css')); | |
| gulp.src('app/**/*.html') | |
| .pipe(wiredep()) | |
| .pipe(gulp.dest('app')); | |
| }); | |
| gulp.task('watch', ['connect'], function () { | |
| $.livereload.listen(); | |
| gulp.watch('bower.json', ['wiredep']); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment