Skip to content
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

CSS/SASS/LESS sourcemaps #2489

Merged
merged 49 commits into from Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e9222c1
Basic PostCSS sourcemaps
mischnic Dec 29, 2018
d2ec796
Support @ import with CSS sourcemap
mischnic Dec 31, 2018
68da31c
Add CSS sourcemap tests
mischnic Jan 1, 2019
62e7ce8
Fixup
mischnic Jan 1, 2019
987e5cc
Don't use object rest spread
mischnic Jan 1, 2019
e47fabd
Fixups for code and tests
mischnic Jan 3, 2019
02abdbc
Source maps for SASS
mischnic Jan 4, 2019
8d8f6db
LESS sourcemaps
mischnic Jan 4, 2019
e1e12fa
Cleanup SASS sourcemap generation
mischnic Jan 4, 2019
d3f6ece
SASS sourcemap tests
mischnic Jan 4, 2019
cc15e59
Add LESS sourcemap test
mischnic Jan 4, 2019
1e54c1a
Cleanup CSSAsset sourcemap handling
mischnic Jan 5, 2019
2570d94
Adjust tests
mischnic Jan 5, 2019
f735ec3
Use existing CSS sourcemaps
mischnic Jan 5, 2019
93bae07
Extract loadSourceMap into util file
mischnic Jan 5, 2019
bf9fbfd
Refactor CSSAsset sourcemap
mischnic Jan 5, 2019
8dfd04b
Run CSS sourcemap tests also without minify
mischnic Jan 5, 2019
cca0724
Merge branch 'master' into css-sourcemaps
DeMoorJasper Jan 5, 2019
4d934de
Source maps for imported CSS without minify
mischnic Jan 5, 2019
cab31b5
Cleanup
mischnic Jan 6, 2019
8a1e9e0
Merge branch 'master' into css-sourcemaps
mischnic Jan 7, 2019
5ec11df
Correct CSS sourcemaps source paths
mischnic Jan 7, 2019
fd11a12
Update CSS sourcemap part on import
mischnic Jan 7, 2019
529de58
Merge branch 'master' into css-sourcemaps
DeMoorJasper Jan 10, 2019
25f07f5
Fix emitted sourceMap file property
mischnic Jan 11, 2019
34251e7
Upgrade postcss to leverage bugfix
mischnic Jan 11, 2019
3b71860
Sourcemaps for multiple asset types (WIP)
mischnic Jan 16, 2019
0bd315b
Cleanup
mischnic Jan 17, 2019
95a2b82
Put sourcemaps into correct bundle only, make tests pass
mischnic Jan 30, 2019
af75f74
Merge branch 'master' into css-sourcemaps
mischnic Jan 30, 2019
3db7f83
Cleanup css packaging
mischnic Jan 30, 2019
50a436c
Unbreak Vue + CSS modules
mischnic Jan 30, 2019
f840ac7
Fix tests on Node 6
mischnic Jan 31, 2019
b51da53
Merge branch 'master' into css-sourcemaps
mischnic Jan 31, 2019
dea48d3
Merge branch 'master' into css-sourcemaps
DeMoorJasper Feb 8, 2019
7a25eb5
Make Sourcemap bundles have same hash as parent bundle
mischnic Feb 14, 2019
1245c95
Test
mischnic Feb 14, 2019
00f82aa
Make integration-test childBundles order stable
mischnic Feb 16, 2019
d0c9be1
Whoops, fixup
mischnic Feb 16, 2019
0119cab
Fix CSS test timeout on Windows
mischnic Feb 16, 2019
535801b
Merge branch 'master' into css-sourcemaps
mischnic Feb 17, 2019
dd1355e
Cleanup sourcemap testing
mischnic Feb 17, 2019
100e68f
Fix sourcemap tests on Windows
mischnic Feb 23, 2019
c43360f
Invalidate cache based on --no-source-maps
mischnic Feb 27, 2019
ccbe451
Merge branch 'master' into css-sourcemaps
mischnic Feb 27, 2019
c2a4302
Fix tests
mischnic Feb 27, 2019
d1be7c7
Compatibility
mischnic Mar 5, 2019
9d5ec0b
Fix vue sourcemaps
mischnic Mar 5, 2019
ae13f8a
Merge branch 'master' into css-sourcemaps
mischnic Mar 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/core/integration-tests/test/html.js
Expand Up @@ -24,7 +24,11 @@ describe('html', function() {
{
type: 'css',
assets: ['index.css'],
childBundles: []
childBundles: [
{
type: 'map'
}
]
},
{
type: 'html',
Expand Down Expand Up @@ -219,9 +223,6 @@ describe('html', function() {
type: 'css',
assets: ['index.css'],
childBundles: [
{
type: 'map'
},
{
type: 'js',
assets: [
Expand All @@ -231,6 +232,9 @@ describe('html', function() {
'hmr-runtime.js'
],
childBundles: []
},
{
type: 'map'
}
]
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,13 @@
$font-stack: Helvetica, sans-serif;
$primary-color: #333;

body {
font: 100% $font-stack;
color: $primary-color;

div {
background-color: red;
width: 100px;
height: 100px;
}
}
@@ -0,0 +1,5 @@
@import "./library.css";

main {
display: none;
}
@@ -0,0 +1,3 @@
main {
font-family: monospace;
}
@@ -0,0 +1,5 @@

div {
width: 100px;
height: 100px;
}
@@ -0,0 +1,8 @@

@import "./other-style.css";

body {
background-color: red;
}

@import "./another-style.css";
@@ -0,0 +1,4 @@

body {
background-color: red;
}
@@ -0,0 +1,5 @@
@value: 100px * 2;

div {
width: @value;
}
@@ -0,0 +1,5 @@
$variable: monospace;

div {
font-family: $variable;
}
@@ -0,0 +1,5 @@
@import "./other.scss";

body {
color: red;
}
@@ -0,0 +1,5 @@
$variable: #333;

body {
color: $variable;
}
6 changes: 5 additions & 1 deletion packages/core/integration-tests/test/parser.js
Expand Up @@ -24,7 +24,11 @@ describe('parser', function() {
{
type: 'css',
assets: ['index.cSs'],
childBundles: []
childBundles: [
{
type: 'map'
}
]
},
{
type: 'html',
Expand Down
6 changes: 5 additions & 1 deletion packages/core/integration-tests/test/pug.js
Expand Up @@ -24,7 +24,11 @@ describe('pug', function() {
{
type: 'css',
assets: ['index.css'],
childBundles: []
childBundles: [
{
type: 'map'
}
]
},
{
type: 'js',
Expand Down