This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 339
Usemin fails to update CSS file & JS file image paths correctly. #629
Comments
I am also having this issue. Gulp does not properly search the paths when running the gulp task. The error "bootstrap.min.css" is not found is invalid, as the file is clearly in the directory when the gulp task is ran. Gulp configuration file:
Error when running the gulp task in command line:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
},
});
grunt.registerTask('prod', [
'copy', //复制文件
'concat', //合并文件
// 'imagemin', //图片压缩
// 'cssmin', //CSS压缩
'uglify', //JS压缩
'rev', //重置文件名
'usemin:html', //HTML处理
'usemin:css', //HTML处理
'usemin:js', //HTML处理
]);
grunt.registerTask('build', ['clean', 'prod']);
};
The text was updated successfully, but these errors were encountered: