Last active
August 29, 2015 14:02
-
-
Save transitive-bullshit/cd468f0a43b6e0e9d5b6 to your computer and use it in GitHub Desktop.
gulp-prefix simple use case issue
This file contains 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
var gulp = require('gulp') | |
var $ = require('gulp-load-plugins')() | |
gulp.task('default', function () { | |
return gulp.src('index.html') | |
.pipe($.prefix('https://mycdn.com/assets/')) | |
.pipe(gulp.dest('dist')) | |
}) |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="build/css/app.min.css"/> | |
<link rel="stylesheet" href="build/css/app.mobile.min.css"/> | |
</head> | |
<body> | |
<script src="build/js/app.mobile.min.js"></script> | |
<script src="build/js/app.min.js"></script> | |
</body> | |
</html> |
This file contains 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": "TEST", | |
"devDependencies": { | |
"gulp": "^3.6.2", | |
"gulp-load-plugins": "^0.5.1", | |
"gulp-prefix": "0.0.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment