grunt-usemin icon indicating copy to clipboard operation
grunt-usemin copied to clipboard

Replaced 0 references to assets

Open ZigaVukcevicDev opened this issue 9 years ago • 4 comments

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?

ZigaVukcevicDev avatar Apr 19 '15 15:04 ZigaVukcevicDev

@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 avatar Apr 20 '15 06:04 stephanebachelier

@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.

ZigaVukcevicDev avatar Apr 20 '15 07:04 ZigaVukcevicDev

@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 -->

ZigaVukcevicDev avatar Apr 20 '15 13:04 ZigaVukcevicDev

@stephanebachelier did you have any time to look at it? Thank you in advance.

ZigaVukcevicDev avatar Apr 21 '15 13:04 ZigaVukcevicDev