Hi,
I have been working for a long time with gulp-usemin, but know, I have a extrange error.
I change the extesion of my file from html to .mustache file, and so, I change the gulp-min task in order to take the mustache file, but surprise don't put the reference of compiled files inside of the mustache file.
for example..
This is the footer.mustache file.
<!-- build:components /lib/lib.js -->
<script type="text/javascript" src="/js/utils/jquery.min.js"></script>
<script type="text/javascript" src="/bower_components/moment/min/moment-with-locales.min.js"></script>
<script type="text/javascript" src="/bower_components/moment-range/dist/moment-range.min.js"></script>
<script type="text/javascript" src="/bower_components/angular/angular.js"></script>
<script type="text/javascript" src="/bower_components/angular-cookies/angular-cookies.min.js"></script>
<script type="text/javascript" src="/bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="/bower_components/angular-animate/angular-animate.min.js"></script>
<script type="text/javascript" src="/bower_components/angular-touch/angular-touch.min.js"></script>
<script type="text/javascript" src="/bower_components/angular-carousel/dist/angular-carousel.min.js"></script>
<script type="text/javascript" src="/js/utils/angular-locale_es-es.js"></script>
<script type="text/javascript" src="/js/utils/underscore-min.js"></script>
<script type="text/javascript" src="/js/utils/moment.min.js"></script>
<!-- endbuild -->
The gulp task is:
gulp.task('usemin', ['clean'], function() {
var stream = gulp.src(config[options.proj].src + '/*.mustache')
.pipe(usemin({
css: [rev],
components: [rev],
js: [uglify(uglifyOptions),rev],
skipMissingResources: true
}))
.pipe(gulp.dest(config[options.proj].dest));
return stream;
});
This create the file lib/lib.js correctly but not change the footer.mustache file with the new reference to that file.
I try to look up the node_modules files for usemin but I don't find any "hardcoded" html extension.
Any help?
Hi,
I have been working for a long time with gulp-usemin, but know, I have a extrange error.
I change the extesion of my file from html to .mustache file, and so, I change the gulp-min task in order to take the mustache file, but surprise don't put the reference of compiled files inside of the mustache file.
for example..
This is the footer.mustache file.
The gulp task is:
This create the file lib/lib.js correctly but not change the footer.mustache file with the new reference to that file.
I try to look up the node_modules files for usemin but I don't find any "hardcoded" html extension.
Any help?