grunt-css-url-rewrite
grunt-css-url-rewrite copied to clipboard
Grunt aborting with warnings when running on Windows env
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']
}
}
},
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.
Same issue in Windows..I assume it should work in linux..
confirm