grunt-css-url-rewrite icon indicating copy to clipboard operation
grunt-css-url-rewrite copied to clipboard

Grunt aborting with warnings when running on Windows env

Open egpierro opened this issue 11 years ago • 4 comments

egpierro avatar Apr 08 '14 20:04 egpierro

I'm getting Running "cssUrlRewrite:dist" (cssUrlRewrite) task Warning: File D:\WebstormProjects\kks\node_modules\grunt-css-url-rewrite\tasks\lib..\img\intro-bg.jpg does not exist Use --force to continue.

    cssUrlRewrite: {
        dist: {
            src: "dist/assets/site.min.css",
            dest: "dist/assets/site.min.css",

            options: {
                baseDir:"..\\",
                skipExternal: true,
                rewriteUrl: function (url, options, dataURI) {
                    var path = url.replace(options.baseDir, '');
                    return url.split('/').pop()
                }
            }
        }
    },
    cssmin: {
        options: {
           // root: 'dist', // Not needed for me
            relativeTo:'./'
        },
        combine: {
            files: {
                'dist/assets/site.min.css': ['web/assets/css/*.css']
            }
        }
    },

ghost avatar Aug 15 '14 06:08 ghost

Got the same issue on a linux environement. Though the plugin was supposed to REWRITE urls, not encode them to base64 without the possibility to disable this in the configuration.... too bad.

pgayvallet avatar Oct 08 '14 12:10 pgayvallet

Same issue in Windows..I assume it should work in linux..

saravanakumard avatar Nov 05 '14 05:11 saravanakumard

confirm

Detzler avatar Apr 12 '18 09:04 Detzler