-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENOENT Error #17
Comments
It looks like the same issue as in less/less-plugin-clean-css#8, though I have no idea of it could be too. It looks like some incompatibility between how |
I disabled sourcemaps and now the plugin runs without error. However, I don't see any prefixed CSS files?
|
Are you sure? Most of |
I have updated my gulp file to the below and still don't see any prefixed CSS files in the output.
|
I get this issue ( gulp.task('less', function () {
return gulp.src(['./assets/css/main.less'], {base: '.'})
.pipe(gulpIf(!isProd(), sourcemaps.init()))
.pipe(less({
plugins: [cleanCSS] // works
// plugins: [autoprefix, cleanCSS] // doesn't work
}))
.pipe(gulpIf(!isProd(), sourcemaps.write('.')))
.pipe(gulp.dest(DEST))
.pipe(livereload());
}); |
It should be noted that this is on io.js 3.0.x and 3.1.x. Could be an io.js issue? |
Confirming this issue on Node 4.0.0. |
My current thinking is that this is not node version specific and is the same bug that @seven-phases-max pointed to, which is a bug in clean-css. less/less-plugin-clean-css#8.. which is clean-css/clean-css#593 If you can reproduce without clean-css, I'll investigate. If you are stuck on this bug consider helping to track down the problem in clean css (some progress and evidence is on that issue) or find a different css minifier (or don't use sourcemaps). |
I'd like to help with this but am not very well-versed in the less package / its plugins. This is what my code roughly looks like:
What do you mean by "reproducing without clean-css"? |
okay so it isn't a clean-css issue, since you are reproducing with the above code. is that in a repo somewhere? if I have an easy to reproduce test case it makes tracking it down easier |
There isn't but I'll try to create one. |
There you go: https://github.com/borekb/less-plugin-autoprefix-17 |
thanks, I'll take a look now |
seems like it might be a regression in postcss, but am investigating further the sourcemap going into postcss has all less sources. coming out it has 1 more source, named |
Ok, it might not be a regression, but it is related to a quirk in postcss. one way to fix it is to set
in gulp less. e.g.
basically postcss always adds its input to the sources. If you have an output filename its possible to get postcss to merge that source with the existing one (I don't really know why its like that). postcss source is less' output and actually isn't referenced by the map, because the map needs to go from the input less files straight to the output. possible solutions
|
Please try again now, I found a simpler solution. |
👍, fixed it for me. |
Yep, worked for me too. Thanks! |
For some reason this still doesn't work for me with 1.5.1. I have version 5.0.10 of postcss installed - maybe some more changes were made that broke it again? A real shame that postcss developers aren't listening to you at all! |
The workarounds noted above don't seem to work for me either |
@wolfy1339 Would this be a suitable workaround? https://github.com/Crunch/postcss-less |
I will take a look, but in the mean time I can suggest another workaround, instead of using LESS plugins we use gulp or grunt plugins instead. For some reason that fixes the sourcemap problem |
Can someone with edit access please correct the title of this issue by replacing "ENONET" with "ENOENT"? This will save some time for people (like me) searching online for "ENONET"; this issue is the first one shown by Google. |
Receive error:
Relevant gulp file:
The text was updated successfully, but these errors were encountered: