Commit 883d184
* feature(gatsby): Pause dev-ssr watching between page loads to avoid slowing down regular develop-js HMR
* update snapshot
* Don't double-resolve + add activity for building the SSR bundle
* Add timeout for tests to ensure that dev server has time to bundle SSR + remove activity timers as not helpful
* feature(gatsby): Extract and add CSS when SSRing in dev
* Remove commented out code
* get tests passing
* WIP
* Got hot-reloading working w/ mini-css-extract-plugin
* remove mistakenly added file
* remove change to yarn.lock
* revert other mistakenly added files
* Add an async module to test against
* fix async module
* Add postcss/tailwind
* write webpack config for easy comparisons
* that was a lot easier than I thought — just set hmr:true for non-production sites
* cleanups
* Don't need this since we're using <link> not <style>
* pass in port
* remove dev css from test comparisons
* Update snapshots + add tailwind
* cleanups
* remove discarded changes
* Move changes behind flag
* Undo unnecesary changes
* Update tests for signature change
* Move more code behind the flag
* dynamically set absolute URL for css files so works wherever it's hosted
* start relative than make absolute
* Remove now unused port
* Remove changes from #28394
* use @pieh's suggested refactor in https://github.com/gatsbyjs/gatsby/pull/28471/files\#r546803732
* pass naming options for extractText in via options
* Update packages/gatsby/src/utils/webpack.config.js
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
* Update snapshot
* Stop Jest from chocking on import of css
* turned out we didn't need this
* test(ssr): ignore src/test file (those are not tests)
* test(ssr): update snapshot after removing inline script modyfing href
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
(cherry picked from commit 121ccbf)
Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
1 parent b648728 commit 883d184
File tree
20 files changed
+180
-20
lines changed- integration-tests/ssr
- __mocks__
- __tests__
- __snapshots__
- src
- pages
- styles
- packages/gatsby
- cache-dir
- __tests__
- src/utils
20 files changed
+180
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
3 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
0 commit comments