-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Source Maps being written twice #1386
Comments
Confirmed |
trying to debug. disabling pleeease's minification makes the sourcemap work as expected: .pipe($.pleeease, {
minifier: false,
autoprefixer: {
browsers: [
'last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4',
'opera 12'
]
}
}) |
UPDATE: Not fixed. Same issue as slobich below |
disabling pleeease's minification doesn't fix the issue for me. it does change the way source maps work. before the source maps referenced only the first line of the |
Not fixed. Same issue as slobich above! |
switching to pleeease 3.2.0 works for me. add the following to your
example of full {
"name": "sage",
"version": "8.1.0",
"author": "Ben Word <ben@benword.com>",
"homepage": "https://roots.io/sage/",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/roots/sage.git"
},
"bugs": {
"url": "https://github.com/roots/sage/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"scripts": {
"build": "bower install && gulp",
"jshint": "gulp jshint",
"jscs": "jscs gulpfile.js assets/scripts/*.js"
},
"engines": {
"node": ">= 0.12.0",
"npm": ">=2.1.5"
},
"devDependencies": {
"pleeease": "3.2.0",
"asset-builder": "^1.0.1",
"browser-sync": "^2.0.1",
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-changed": "^1.1.0",
"gulp-concat": "^2.3.4",
"gulp-flatten": "0.0.4",
"gulp-if": "^1.2.5",
"gulp-imagemin": "^2.0.0",
"gulp-jshint": "^1.8.4",
"gulp-less": "^3.0.1",
"gulp-load-plugins": "^0.8.0",
"gulp-pleeease": "^1.1.0",
"gulp-plumber": "^1.0.0",
"gulp-rename": "^1.2.0",
"gulp-rev": "^3.0.0",
"gulp-sass": "^1.2.4",
"gulp-sourcemaps": "^1.1.1",
"gulp-uglify": "^1.0.1",
"imagemin-pngcrush": "^4.0.0",
"jshint-stylish": "^1.0.0",
"lazypipe": "^0.2.2",
"merge-stream": "^0.1.7",
"traverse": "^0.6.6",
"wiredep": "^2.1.0",
"yargs": "^3.2.1"
}
} |
Do you still have minifier: false,? Just updating pleeease din't fix it on my end. Actually neither works for me at all. A few elements map to the right place but for the most part its basically random. If I don't have minifier: false, within gulp it actually just says every class is from font-awesome.css which i installed via bower. |
no, i don't — stock gulpfile. just to confirm, you ran |
Yup. When that did nothing I also ran npm update. |
Just to be a bit more verbose... On a plain vanilla sage install, I get main.css as the source of all styles. To reproduce: Install WP |
@stueynet I wouldn't run So along with your instructions, you need to add |
working for me. but it didn't work with |
just saw @kalenjohnson comment. so yes... i did it like he recommends. first deleted |
Yup confirmed. Sorry about my ignorance. First delete node modules and then npm install works. |
As stueynet stated, First delete node_modules and then run nom install worked perfectly ! |
confirmed that fix works. Delete node_modules first. |
This gulp plugin was more trouble than it was worth. ref roots#1386 ref https://discourse.roots.io/t/sourcemaps-no-longer-working-as-expected-with-sage-update/3022/1
This gulp plugin was more trouble than it was worth. ref roots#1386 ref https://discourse.roots.io/t/sourcemaps-no-longer-working-as-expected-with-sage-update/3022/1
This gulp plugin was more trouble than it was worth. ref roots#1386 ref https://discourse.roots.io/t/sourcemaps-no-longer-working-as-expected-with-sage-update/3022/1
This gulp plugin was more trouble than it was worth. ref roots#1386 ref https://discourse.roots.io/t/sourcemaps-no-longer-working-as-expected-with-sage-update/3022/1
https://discourse.roots.io/t/sourcemaps-no-longer-working-as-expected-with-sage-update/3022
I just confirmed with a fresh Sage install that the source maps are being written directly into the
main.css
file as well as themain.map.css
file.Diffing a project that's not having the issue, the only difference in the
gulpfile.js
is this:Doesn't seem connected, since it's in the
watch
taskThe text was updated successfully, but these errors were encountered: