Alexander Dreith
8449ebc221
[Experimental] Add built-in Sass support ( #10133 )
...
* Add built-in Sass support
* Add copy of CSS tests for SCSS
* Fix failing tests
* Fix url-loader tests
* Remove css file generated by tests
* Fix nprogress import for css file
* Fix SCSS modules (still 2 tests that need investigating)
* Update documentation for Sass support
* Fix plain CSS import test
* Fix formatting with prettier fix
* Update test output to reflect scss usage
* Revert "Fix plain CSS import test"
This reverts commit 380319d9d0c4bfb19e28c210262ccd82d19f3556.
# Conflicts:
# test/integration/scss-modules/test/index.test.js
* Update loader structure
* Resolve loaders before passing to compile function
* Remove dead filter code
* Arrange loaders in order and push to array
* Fix loader order bug
* Fix global Sass loader and make module prepocessor optional
* Adjust Sass Modules Implementation
* Fix typo
* Adjust regexps
* Use regexes
* Simplify global setup
* Adjust comments
* fix regex
* Simplify identifier file
* Update Sass Instructions
* Remove unneeded fixtures
* Adjust global tests
* Remove wrapper
* Update source maps
* Flag scss behavior
* Fix css property value
* Update fixtures with Sass vars
* Turn on Scss support
* fix HMR test
* Fix snapshots
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:26:51 -05:00
fauna-brecht
7d419f885e
Let users define their own database as easily as possible. ( #10209 )
...
* Let users define their own client token.
* Make sure users know that GraphQL schema can also be done via the UI
* Update README.md
* Update setup.js
Co-authored-by: Matthew Sweeney <mail@msweeneydev.com>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:16:56 -05:00
Luis Alvarez D
f24aa41440
Updated docs ( #10213 )
2020-01-22 14:30:55 -05:00
Tim Neutkens
dd4d3f7c00
v9.2.1-canary.8
2020-01-22 17:25:18 +01:00
Joe Haddad
f67f99a295
Extract CSS Loaders into Separate Files ( #10210 )
2020-01-22 09:50:27 -06:00
Tim Neutkens
6988a2e0a5
Use builtins for React transform ( #10207 )
...
* Disable core-js on Next.js core files as it's not transforming anything important
* Move babel options to taskr plugin
* Disable transform-runtime for pages dir
* Disable correctly
* Disable corejs for core files
* Temporarily check if this fixes the error
* Use builtIns and exclude async-to-generator
* Update index.test.js
2020-01-22 16:24:02 +01:00
Joe Haddad
4a2236dac3
Dedupe CSS Regexes ( #10206 )
2020-01-22 09:50:30 -05:00
Joe Haddad
a3f1d65eba
Fix ESLint Ignores and Extract Fn ( #10205 )
2020-01-22 09:32:51 -05:00
Tim Neutkens
7b0118a991
Disable core-js on Next.js core files as it's not transforming… ( #10193 )
...
* Disable core-js on Next.js core files as it's not transforming anything important
* Move babel options to taskr plugin
* Disable transform-runtime for pages dir
* Disable correctly
* Disable corejs for core files
* Temporarily check if this fixes the error
2020-01-22 14:34:49 +01:00
JJ Kasper
b6edf814b7
Update error for failing to parse custom-route source ( #10197 )
...
* De-dupe invalid-custom-routes tests
* Update error for failing to parse custom-route source
2020-01-22 11:16:13 +01:00
JJ Kasper
fe72fd215c
v9.2.1-canary.7
2020-01-21 15:49:16 -06:00
JJ Kasper
592a2c2f00
Update tsconfig for tests
2020-01-21 15:29:39 -06:00
JJ Kasper
53e9983d83
Add hydration callback for testing ( #10195 )
...
* Add hydration callback for testing
* Update size-limit test
2020-01-21 15:33:58 -05:00
Tim Neutkens
fa65442cad
Disable core-js for server-side build ( #10189 )
...
* Disable core-js in server-side build
* Update cache-key
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-21 09:47:20 -05:00
Joe Haddad
4bd6a53ebc
Test Query String with + Sign ( #10186 )
2020-01-21 09:32:27 -05:00
Tim Neutkens
bea488f009
Don't include core-js for default _document ( #10187 )
...
* Don't include core-js for default _document
* update taskfile.js
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-21 09:18:06 -05:00
Joe Haddad
9b512a850c
Stabilize New Dev Test ( #10188 )
2020-01-21 09:10:47 -05:00
Joe Haddad
c75146f7b2
Test CSS/Media Caching in Production Suite ( #10184 )
...
* Test CSS Modules in Production Suite
* fix build
* test css and media assets
2020-01-21 08:19:53 -05:00
Joe Haddad
ebc46c111f
v9.2.1-canary.6
2020-01-20 18:53:41 -05:00
JJ Kasper
fcfb5959e6
Allow mismatching href
and as
when manually provided ( #9837 )
...
* Allow mismatch href and as when manually provided
* Swap warning and error and throw error in production also
* Add test for mismatch error in production
* Update to only show warning in development
2020-01-20 16:47:52 -06:00
JJ Kasper
57aae473ed
v9.2.1-canary.5
2020-01-20 16:36:58 -06:00
Luis Alvarez D
39020c432d
Improve user errors for invalid pageExtensions
( #10178 )
...
* Added validation for pageExtensions and tests
* Removed log
* Test for undefined
2020-01-20 17:19:33 -05:00
MH Rohman Masyhar
275a65555a
Add with-stencil
example ( #10125 )
...
* feat(example): add with-stencil
* feat(docs): add build stencil component
* fix: disable eslint config for h render
* Update README.md
* Delete .editorconfig
* Update index.js
* Fix linting
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:45:03 -05:00
JJ Kasper
5f5c5e4e9e
Add support for catch-all routes with SSG ( #10175 )
...
* Add support for catchall routes with SSG
* Add test for invalid catchall param in getStaticPaths
2020-01-20 16:44:50 -05:00
JJ Kasper
0d0f21899c
v9.2.1-canary.4
2020-01-20 15:42:03 -06:00
Thibault
71e29cd80a
Update Relay Modern example ( #10150 )
...
* chore(npm): update dependencies
* fix(relay): move GraphQL query outside pages folder
* refactor(react): destructure props
* refactor(react): remove unused key and simplify syntax
2020-01-20 16:31:45 -05:00
Aziz Khambati
b72b8e225d
[with-emotion-10,11] Update emotion examples to v10 & v11 ( #9646 )
...
* Update emotion to v10, use @emotion/core, @emotion/styled
* Add with-emotion-11 and make review changes
* Fix package names and run prettier
* fix readmes
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:26:22 -05:00
Vitaliy
7a728d69db
Serve public/
folder when page routes are disabled ( #10169 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:13:47 -05:00
Afzal Sayed
b95214e2cd
feat(examples:tailwind): add postcss-preset-env ( #10160 )
...
* feat(examples:tailwind): add postcss-preset-env
* fix: prettier
* Review changes
* Update README.md
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:13:18 -05:00
Michael Stramel
ea0d916b50
example: Convert _app.js to functional components ( #10115 )
...
Fix formatting
2020-01-20 16:13:04 -05:00
Kevin Jennison
34f1aefa4a
Add example: with-firebase-authentication-serverless ( #10078 )
...
* Start from existing example
* Upgrade some dependencies
* Use dotenv
* Remove custom server
* Add serverless Firebase auth
* Add TODOs
* Update project name
* Fix build script
* Remove server middleware from client JS bundle
* Add logout functionality
* Redirect to auth page on logout
* Remove TODO
* Add comments about the cookie-session approach
* Remove the sessions folder
* Add comments for eslint
* Remove unused files
* Clarify comment
* Update README.md
* Rename variable for clarity
* Update README.md
* Change some comments
* Add more to gitignore
* Remove the bundle analyzer
* Move server-side auth user logic from _app.js to a HOC to support static HTML rendering
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:12:48 -05:00
JJ Kasper
04f1dd52b9
Delay hydration until after page is visible in development ( #10164 )
...
* Delay hydration until after page is visible in development
* Tweak dead-code elimination
2020-01-20 21:41:41 +01:00
Sebastian Silbermann
6b87b2b541
feat(build): Transpile assuming higher version of runtime ( #9511 )
...
* feat(build): Transpile assuming higher version of runtime
* Use runtime version from manifest
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 21:40:59 +01:00
Luis Alvarez D
7fc850e28a
[docs] Added related links to next.config.js ( #10174 )
...
* Added related links
* Added missing dots
2020-01-20 21:40:20 +01:00
JJ Kasper
a21a8fcc4d
Add error for invalid distDir value ( #10177 )
...
* Add error for invalid distDir value
* Add check for null/undefined distDir
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 14:35:29 -06:00
Joe Haddad
eb38d223e6
Test Query String Behavior ( #10102 )
...
* Test Query String Behavior
* Test Query String with %
* Test Query String With LF
* Update test
* Consolidate
* Consolidate
2020-01-20 15:16:18 -05:00
Joe Haddad
2e668e6b31
Remove native-url
( #10176 )
...
* Remove `native-url`
* Increase sizes
2020-01-20 14:47:42 -05:00
Shane Kunz
ec658fc998
sends Google Analytics correct url path on fresh page load ( #10146 )
2020-01-20 11:29:35 -05:00
Tim Neutkens
acca2c0a5d
v9.2.1-canary.3
2020-01-20 15:57:03 +01:00
Luis Alvarez D
7f021546d3
Remove @zeit/next-css from docs ( #10168 )
...
* Removed next-css from docs
* Added mention for next-stylus
2020-01-20 15:41:04 +01:00
JJ Kasper
e04e5a5c15
Add initial support for static 404 page ( #10113 )
...
* Add initial support for static 404 page
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Simplify custom error page check
* Add comment explaining reason for custom app check
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-20 15:10:24 +01:00
Naggar
71c2354ecd
fix broken link in error page ( #10159 )
...
This commit updates the link for Automatic Static Optimization page in the Documentation
2020-01-19 16:02:44 +01:00
Richard Scotten
33b22796c7
Add option arg to changeState when onlyAHashChange ( #10003 )
...
* added option to changeState when onlyAHashChange
* added integration tests
* segregated tests because they caused other tests to fail
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-18 20:35:12 -06:00
Ev Haus
bbf19cd99e
Minor update for the "with-react-ga" example ( #10156 )
2020-01-18 19:03:12 -05:00
Orta
0444cb97ba
Update static-html-export.md ( #10155 )
2020-01-18 16:24:29 -05:00
Sang Song
9352392f4f
chore(examples): Update firebase version ( #10145 )
2020-01-17 23:06:58 +01:00
Zhe Zhang
0b1217e79e
Update with-tailwindcss example ( #10141 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-17 16:02:38 -05:00
JJ Kasper
15cffd0059
v9.2.1-canary.2
2020-01-17 14:14:52 -06:00
JJ Kasper
5a9a478cc8
Fix hydration with custom _app and granular chunks ( #10144 )
...
* Add failing hydration test
* Add importing of next/router to _app
* Fix type
* Update _app check for windows
* Remove babel fix
* Update to use webpack to require next/router
2020-01-17 14:13:51 -06:00
Oleg Filonchuk
aa6991f206
update readme.md ( #10136 )
...
fixed a little typo
2020-01-17 14:22:40 -05:00