Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Toolchain
sgc
Commits
d7ebbbac
Commit
d7ebbbac
authored
Aug 29, 2020
by
Stefan Galinski
🎮
Browse files
[BUGFIX] Fix sourcemap generation errors in css files
parent
30d05705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
core/tasks/css.js
core/tasks/css.js
+2
-7
No files found.
core/tasks/css.js
View file @
d7ebbbac
...
...
@@ -176,19 +176,14 @@ module.exports = class Css extends Task {
try
{
postProcessedCss
=
await
postcss
(
postCssPlugins
).
process
(
cssString
,
{
from
:
_input
,
to
:
_output
,
map
:
this
.
_config
.
cssPipeline
.
sourceMaps
?
{
inline
:
false
,
annotation
:
path
.
join
(
path
.
relative
(
path
.
dirname
(
_output
),
path
.
dirname
(
sourceMapPath
)),
path
.
basename
(
sourceMapPath
)),
sourcesContent
:
true
}
:
false
to
:
_output
});
}
catch
(
_error
)
{
this
.
_handleError
(
`
${
_error
.
message
}
`
);
}
await
this
.
_writeFile
(
_output
,
postProcessedCss
.
css
);
if
(
this
.
_config
.
cssPipeline
.
sourceMaps
)
{
if
(
this
.
_config
.
cssPipeline
.
sourceMaps
&&
postProcessedCss
.
map
)
{
await
this
.
_writeFile
(
sourceMapPath
,
postProcessedCss
.
map
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment