grunt-usemin
grunt-usemin copied to clipboard
Replaced 0 references to assets
Hi,
I can not seem to work this one out.
Grunt task:
useminPrepare: {
html: 'index.html',
options: {
dest: '.'
}
},
usemin: {
html: ['build/development/index.html']
},
Grunt register task:
grunt.registerTask('deploy-development', [
'clean:cleanDevelopment',
'copy:buildDevelopment',
'useminPrepare:html',
'cssmin:stylesDevelopment',
'cssmin:bootstrapDevelopment',
'uglify:mainDevelopment',
'usemin'
]);
HTML file
<!-- build:css css/bootstrap.min.css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" media="screen" />
<!-- endbuild -->
CLI output:
Running "copy:buildDevelopment" (copy) task
Created 13 directories, copied 137 files
Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin
Running "cssmin:stylesDevelopment" (cssmin) task
Running "cssmin:bootstrapDevelopment" (cssmin) task
Running "uglify:mainDevelopment" (uglify) task
>> 1 file created.
Running "usemin:html" (usemin) task
Replaced 0 references to assets
Dos anybody see what could be the issue?
@be-codified what usemin version are you using ? If you can share your project or at least something to reproduce your use case it will be better.
@stephanebachelier thank you for your reply. I am using version 3.0
You can take a look here: https://github.com/be-codified/personal-presentation-site/tree/development
Please let me know if you need some additional files or folders. Not all of them are pushed on GitHub.
@stephanebachelier please note that I have changed block as follows:
<!-- build:css css/somefile.min.css -->
<link rel="stylesheet" type="text/css" href="css/somefile.css" media="screen" />
<!-- endbuild -->
@stephanebachelier did you have any time to look at it? Thank you in advance.