You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Can't Live Edit CSS/SCSS Sources in Chrome Workspaces without file:// #717
What is the current behavior?
Sourcemap from sub module css (from sass-loader) is stringified with absolute paths
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Would be great to be able to use Chrome 66 workspaces to live edit files, but Chrome requires that sourceMap has file:// at the beginning
If this is a feature request, what is motivation or use case for changing the behavior?
To use Chrome workspaces to live edit scss/css
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
webpack 4.8.3
node 8.10.0
MacOS 10.13.4
I was able to get the correct behaviour by doing the following on lines 117..132 in loader.js
@evilebottnawi While they are related, they are not the same issue. css-loader is responsible for munging these sourceMaps, there is nothing webpack or that issue can do to resolve it by itself.
I guess with an option like sourceMapUrlPrefix or a similar callback function as mentioned above with devtoolModuleFilenameTemplate(info) (or maybe look for that output setting and use the same so they output the same file formats?
Activity
alexander-akait commentedon May 18, 2018
@niedfelj seems you have invalid configuration webpack out of box work with workspaces
niedfelj commentedon May 18, 2018
@evilebottnawi What should it be? I'm working with the new Shopify slate/slate-tools project. Opened this ticket with them also
Shopify/slate#447
niedfelj commentedon May 18, 2018
Also reference this issue webpack/webpack#6400
alexander-akait commentedon May 18, 2018
Looks like we can close this issue in favor webpack/webpack#6400
niedfelj commentedon May 18, 2018
@evilebottnawi While they are related, they are not the same issue. css-loader is responsible for munging these sourceMaps, there is nothing webpack or that issue can do to resolve it by itself.
alexander-akait commentedon May 18, 2018
@niedfelj how you imagine we will fix it in
css-loader?niedfelj commentedon May 18, 2018
I guess with an option like sourceMapUrlPrefix or a similar callback function as mentioned above with devtoolModuleFilenameTemplate(info) (or maybe look for that output setting and use the same so they output the same file formats?
alexander-akait commentedon May 18, 2018
@niedfelj we should first solve this in webpack, maybe add new api, which allow us using this, no new option(s)
niedfelj commentedon May 18, 2018
alexander-akait commentedon May 18, 2018
@niedfelj 👍
HairyRabbit commentedon Jul 8, 2018
:)
Anything update here?
Happen when I chain loader by 'postcss-loader'
Fix sources path and prepend
file:///looks fine for me:alexander-akait commentedon Mar 11, 2019
@HairyRabbit your problem already solved in last release and not related to top issue
alexander-akait commentedon Mar 11, 2019
Close in favor #622 (comment)
Anyway you can setup editing in dev tools:
Filesystemin on left panel.Add folder to workspacein left panel.src/libdirectory.Anyway we should respect
devtoolModuleFilenameTemplateand otherdevtooloptions, close in favor #622 (comment). Thanks for issue