Title: SCSS SourceMap pointing to the Parent selector only. · Issue #2826 · angular/angular-cli · GitHub
Open Graph Title: SCSS SourceMap pointing to the Parent selector only. · Issue #2826 · angular/angular-cli
X Title: SCSS SourceMap pointing to the Parent selector only. · Issue #2826 · angular/angular-cli
Description: Mac OSX (El Capitan?) angular-cli: 1.0.0-beta.18 node: 6.7.0 When running 'ng serve' or 'ng build' the SCSS SourceMaps only point to the Parent selector and not the correct selector. But as you can see it is not pointing to the correct s...
Open Graph Description: Mac OSX (El Capitan?) angular-cli: 1.0.0-beta.18 node: 6.7.0 When running 'ng serve' or 'ng build' the SCSS SourceMaps only point to the Parent selector and not the correct selector. But as you can...
X Description: Mac OSX (El Capitan?) angular-cli: 1.0.0-beta.18 node: 6.7.0 When running 'ng serve' or 'ng build' the SCSS SourceMaps only point to the Parent selector and not the correct selector...
Opengraph URL: https://github.com/angular/angular-cli/issues/2826
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SCSS SourceMap pointing to the Parent selector only.","articleBody":"Mac OSX (El Capitan?)\nangular-cli: 1.0.0-beta.18\nnode: 6.7.0\n\nWhen running 'ng serve' or 'ng build' the SCSS SourceMaps only point to the Parent selector and not the correct selector.\n\n\u003cimg width=\"320\" alt=\"2016-10-22_0150\" src=\"https://cloud.githubusercontent.com/assets/3236909/19618268/21cb7c3a-97fa-11e6-97c3-8547c933d7ab.png\"\u003e\n\nBut as you can see it is not pointing to the correct selector. It should be pointing to line 13 not line 5.\n\n\u003cimg width=\"298\" alt=\"2016-10-22_0156\" src=\"https://cloud.githubusercontent.com/assets/3236909/19618290/016d5746-97fb-11e6-887d-4ea0db9e34ae.png\"\u003e\n\nThis seems to be related more towards angular-cli and webpack as running the node-sass cli works fine and points to line 13\n`node-sass --source-map true src/styles.scss \u003e styles.css`\n\nI have tried changing devtool to 'source-map' in \n/node_modules/angular-cli/models/webpack-build-development.js\nAnd still no luck.\n\nPS in order to get SourceMaps to work I needed to add ?sourceMap to the css and sass loaders in \n/node_modules/angular-cli/models/webpack-build-common.js\nAlso I needed to update angular-cli: 1.0.0-beta.17 to angular-cli: 1.0.0-beta.18\n\nHere is my loader configurations in \n/node_modules/angular-cli/models/webpack-build-common.js\n\n\u003e // in main, load css as raw text\n\u003e {\n\u003e exclude: styles,\n\u003e test: /.css$/,\n\u003e loaders: ['raw-loader', 'postcss-loader']\n\u003e }, {\n\u003e exclude: styles,\n\u003e test: /.styl$/,\n\u003e loaders: ['raw-loader', 'postcss-loader', 'stylus-loader'] },\n\u003e {\n\u003e exclude: styles,\n\u003e test: /.less$/,\n\u003e loaders: ['raw-loader', 'postcss-loader', 'less-loader']\n\u003e }, {\n\u003e exclude: styles,\n\u003e test: /.scss$|.sass$/,\n\u003e loaders: ['raw-loader', 'postcss-loader', 'sass-loader?sourceMap']\n\u003e },\n\u003e // outside of main, load it via style-loader\n\u003e {\n\u003e include: styles,\n\u003e test: /.css$/,\n\u003e loaders: ['style-loader', 'css-loader', 'postcss-loader']\n\u003e }, {\n\u003e include: styles,\n\u003e test: /.styl$/,\n\u003e loaders: ['style-loader', 'css-loader', 'postcss-loader', 'stylus-loader']\n\u003e }, {\n\u003e include: styles,\n\u003e test: /.less$/,\n\u003e loaders: ['style-loader', 'css-loader', 'postcss-loader', 'less-loader']\n\u003e }, {\n\u003e include: styles,\n\u003e test: /.scss$|.sass$/,\n\u003e loaders: ['style-loader', 'css-loader?sourceMap', 'postcss-loader', 'sass-loader?sourceMap']\n\u003e }\n\nI tried removing 'postcss-loader' and also rearranging the loaders, but still no luck.\n\nI am thinking that maybe one of the loaders is running before the sass source-maps is running and getting the incorrect or compressing the css before it runs the source map, but I am not sure.\n\nAny Help?\n\nThanks\n","author":{"url":"https://github.com/ggedde","@type":"Person","name":"ggedde"},"datePublished":"2016-10-22T09:37:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/2826/angular-cli/issues/2826"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:011e4006-a049-25fe-a965-f373ebde9eb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B55A:18A62A:E628CDA:12AF119C:69772205 |
| html-safe-nonce | 87a546cb7a37c68ce3da6d847988c420ea943ae3259c5a34c5b73c94a434856c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTVBOjE4QTYyQTpFNjI4Q0RBOjEyQUYxMTlDOjY5NzcyMjA1IiwidmlzaXRvcl9pZCI6IjgxNTAxODgzNzEzOTQxMDk5NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a49f18439e6a26d43329359ac3d53961403d53ef34d0fad473cd1021cc26bdc7 |
| hovercard-subject-tag | issue:184620614 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2826/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fd19b820a2be4d775bdbef95c31fcd59fbbb5f9720ac9ab75495bcd2496b603/angular/angular-cli/issues/2826 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fd19b820a2be4d775bdbef95c31fcd59fbbb5f9720ac9ab75495bcd2496b603/angular/angular-cli/issues/2826 |
| og:image:alt | Mac OSX (El Capitan?) angular-cli: 1.0.0-beta.18 node: 6.7.0 When running 'ng serve' or 'ng build' the SCSS SourceMaps only point to the Parent selector and not the correct selector. But as you can... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ggedde |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width