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
3.0.3 (PR #161) breaks gulp setup with bootstrap less file not found #166
Comments
This is caused by #162, I think. Accord inlines all source content by default in order to prevent any issues with paths, like this one. When you make source map paths relative through less directly, accord will no longer inline sourcemaps, since this is an override of it's default source map handling and it can't guarantee the correct root to join along with the relative paths. It seems as if the relative path is not lining up correctly now with that change in place. The way I see it, we have two options here. First is not to use relative paths and let accord handle source mapping its own way, using absolute paths, which works. However, it seems to me like there might be some benefit from having relative paths since a few people have requested it, although I'm not sure what it is. If someone could explain it to me, that would be great. A second potential option is to build a special case into the less adapter such that accord is aware of the relative path overrides and is able to correctly detect the root, join paths, and still inline the content. To be entirely transparent, this is not something I personally would be able to quickly complete, since it's a decent sized and I currently am traveling and don't have a ton of time free on my hands, especially for things that I don't entirely understand the benefit of. Either way, I might roll back |
I'll try some time to build out a minimal reproduction in the next few days so there's something to test against when this gets brought back in. Thanks! |
How is the status on this one? Minifying a less file that was generated with 3.0.3 is impossible if sourcemaps should be preserved/generated. I tried with gulp-minify-css, gulp-cssnano and gulp-postcss+csswring... so it basically must be a gulp-less issue and as it works in 3.0.1 I believe it is related to this issue. |
Can anyone confirm this is still a problem on the latest version? |
*Not* working with gulp-less@3.0.3 or minify-css with any version of gulp-less gulp-community/gulp-less#166 gulp-community/gulp-less#161 https://github.com/contra/gulp-coffee/pull/42/files
See gulp-community/gulp-less#166 for more information
Check out this repo where I initially prepared a testcase for |
Can you try with 3.0.4? |
I tried my repo test case and the same effect persists. The minification fails silently and gulp never finishes the task. |
I've downgraded to 3.0.2 for now and if there's a preferred way to handle this now let me know
The 3.0.3 upgrade breaks my existing gulp system that previously worked with the error message
The relevant snippet from my gulpfile:
Which enabled us to do the following when we included bootstrap:
If would love some direction on the preferred way to do this going forward. I don't see anything in the sourcemaps documentation to specify multiple paths and no way in PR #161 to turn off the new behavior.
The text was updated successfully, but these errors were encountered: