Size: a a a

Next.js — русскоговорящее сообщество

2019 April 16

I

Igor in Next.js — русскоговорящее сообщество
blkmrkt
угу, их лучше вместе использовать
сцсс не нужен
источник

I

Igor in Next.js — русскоговорящее сообщество
тыщу лет
источник

I

Igor in Next.js — русскоговорящее сообщество
css-in-js
источник

I

Igor in Next.js — русскоговорящее сообщество
Igor
css-in-js
ну если не получается, то сцсс, да)
источник

b

blkmrkt in Next.js — русскоговорящее сообщество
Igor
css-in-js
а по мне так херня полная, особенно дичь с инклюдами. И правильно я понимаю, этот цсс в жс ведь не извлекается в один большой бандл?
источник

I

Igor in Next.js — русскоговорящее сообщество
blkmrkt
а по мне так херня полная, особенно дичь с инклюдами. И правильно я понимаю, этот цсс в жс ведь не извлекается в один большой бандл?
Там концепции другие совсем
источник

I

Igor in Next.js — русскоговорящее сообщество
Как раз таки избегают единого бандла
источник

b

blkmrkt in Next.js — русскоговорящее сообщество
Igor
Там концепции другие совсем
точно, а я считал что это одно и то же что инлайн цсс. TIL!
источник

I

Igor in Next.js — русскоговорящее сообщество
blkmrkt
точно, а я считал что это одно и то же что инлайн цсс. TIL!
Глянь доку styled-components
источник

🦜

🦜 in Next.js — русскоговорящее сообщество
blkmrkt
рака яичек тому кто предложил заменить сцсс постцссом
В бан хочешь?
источник
2019 April 17

G

Github Releases Notify Bot in Next.js — русскоговорящее сообщество
zeit/next.js
Pre-release v8.0.5-canary.35
### Patches

- Add experimental option to enable terser loader: #7033
- Move next/router to Typescript: #7019
- Remove experimental amp config: #7046
- Remove experimental flag: #7048
- Remove client bundles for AMP only pages: #7034
- AMP fix escaped rel: #7045
- Add a dot to a note in README.md: #7053
- Updated handling of AMP page reloading: #7052

### Credits

Huge thanks to @Timer, @lfades, @ijjk, @timneutkens, and @lucas0707 for helping!
источник

G

Github Releases Notify Bot in Next.js — русскоговорящее сообщество
zeit/next.js
v8.1.0
источник

G

Github Releases Notify Bot in Next.js — русскоговорящее сообщество
zeit/next.js
v8.1.0
### New Features

Next.js 8.1 introduces AMP support on a per-page basis, allowing incremental adoption of AMP.

Please read our blog post to learn more!

### Patches

- Fix adblock comment: #6859
- Added async-to-promises transform: #6797
- Amp-bind data injection: #6840
- Add optimizing AMP pages: #6835
- Emit manifest of all page files: #6853
- Add error message for AMP bind syntax: #6865
- Refine selective page building: #6866
- Add an experimental debug mode to builds: #6870
- Add useRouter hook: #6869
- Added an HTTP2 server example: #6856
- Fastify example dep update: #6714
- Update Sentry to v5 and add @sentry/integrations: #6873
- Added example with react-multi-carousel for rendering items on the server-side: #6820
- Temporarily pass arguments directly: #6876
- Allow only values that can be serialized to key: #6881
- Add RouterContext in production mode: #6883
- Fix serverless options: #6884
- Update to latest version of amp-toolbox-optimizer: #6885
- Set buildId to a fixed value during debug build: #6886
- Update docs for env variables: #6889
- Upgrade amp-toolbox-optimizer: #6890
- Add check for data in serverless-loader: #6893
- Add test for AMP in serverless mode: #6894
- Dont prefetch with debug mode: #6895
- Revert weird firefox workaround: #6896
- Add checking of react versions: #6892
- Make Client request BUILD_ID from the Server: #6891
- Compute Chunk Graph file hashes on emit: #6897
- Add  experimental page globbing support: #6899
- Correctly compute unknown module ids: #6898
- Extract styled-jsx: #6901
- Turn off module opts when selective page building: #6903
- Temporarily only do one pass: #6900
- Revert "Extract styled-jsx " (#6907): #6901
- Only handle on catch in render: #6908
- Add query for debugging amp data: #6909
- Add useRequest hook and RequestContext: #6910
- Add more chunk graph data: #6911
- Better debug build message: #6915
- Add a build all but specified pages mode: #6916
- Fix page resolution: #6920
- Remove route cache key: #6921
- Make chunk graph more accurate: #6923
- Add lambda version of shared chunks: #6924
- Fix nesting level of client page scripts: #6925
- Add babel-plugin-transform-async-to-promises: #6929
- Bump parallelism on circleci: #6926
- Use var as libraryTarget: #6945
- Disable terser for server build: #6951
- Simplify options assignment: #6949
- Optimize resolve configuration: #6954
- Upgrade Async to Promises: #6958
- Replace imurmurhash with string-hash: #6964
- Moved NODE_ENV to our config: #6965
- Circleci filter PRs: #6961
- Add Amp bind error message: #6962
- Do not clear the console: #6758
- Remove use of Promise.finally in polyfill: #6975
- Disabled performance config in webpack: #6976
- Brought escape-string-regexp source to next: #6979
- Disabled the checkWasmTypes config in webpack: #6978
- Fix getSpecifiedPages on Windows: #6977
- Adjust flying shuttle minify: #6980
- Custom ReasonML Server: #6970
- Update README.md: #6749
- Update no-document-title.md: #6832
- Custom hapi server example handle static files: #6822
- Added cross-env package for using on Windows: #6877
- Fix re-rendering on client after navigating back from external: #6652
- Update root-static-files example: #6967
- The externals option is undefined for client builds: #6983
- Adjust onFinishCallback polyfill: #6984
- Add an experimental mode for flyingShuttle: #6985
- Remove CLI and negative page building: #6986
- Move build utils to their own file: #6990
- Fix Chunk Graph Plugin hashes type: #6994
- Use chunkGroup request over rawRequest for loadable manifest: #6993
- Adjust all modules identified plugin output: #6995
- Correct page search order: #6996
- Disable recordsPath for selective page building: #6997
- Disable flying shuttle when building for now dev: #6998
- Add new getFileForPage helper to build utils: #6999
- Add Flying Shuttle v1: #6991
источник

G

Github Releases Notify Bot in Next.js — русскоговорящее сообщество
- Use next.config env and packages to calculate hashes: #7001
- Add Flying Shuttle tests: #7000
- Set custom cacheIdentifier for babel-loader: #6982
- Add package.json to example: #7004
- Simplify profiling and add serverless target: #7007
- Make async-to-promises babel plugin experimental: #7006
- Disable terser on .min.js input files: #7008
- Replace .amp.js with withAmp(Comp): #7009
- Switch to using .next/cache for flying shuttle and terser: #7013
- Update with-graphql-hooks example to exclude SSR library from commons chunk: #7015
- Make sure AmpContext is available in _document: #7021
- Amp page level reload: #6971
- Set descriptive displayName on withRouter HOC: #7017
- Fix GitHub spelling: #7024
- Enable strict type checking on custom-server-typescript example: #7025
- Fix missing dash: 3363f26a42e5743540218d3ea46cda160ea4b560
- Update README.md: e4ceb903a1cbf85e292c542e10e87a45cda42b25
- Add x-powered-by: #7029
- Add AMP docs to README: #7031
- Re-add experimental amp config: #7030
- Remove noDirtyAmp option: #7032
- Add experimental option to enable terser loader: #7033
- Move next/router to Typescript: #7019
- Remove experimental amp config: #7046
- Remove experimental flag: #7048
- Remove client bundles for AMP only pages: #7034
- AMP fix escaped rel: #7045
- Add a dot to a note in README.md: #7053
- Updated handling of AMP page reloading: #7052

### Credits

Huge thanks to @merelinguist, @lfades, @timneutkens, @Timer, @ijjk, @shahzeb1, @crutchcorn, @HeadFox, @YIZHUANG, @omonk, @justinmchase, @Tevinthuku, @mayank23, @ajrussellaudio, @IvanJov, @nguyenkhois, @kylemh, @j0lv3r4, @alexparish, @SBoudrias, @friederbluemle, @jalcalav, and @lucas0707 for helping!
источник

EI

Eduard Ilyaskin in Next.js — русскоговорящее сообщество
всем привет, а если я сохранил куки на клиенте, на сервере в initialProps их не будет?
источник

NK

ID:573357563 in Next.js — русскоговорящее сообщество
Eduard Ilyaskin
всем привет, а если я сохранил куки на клиенте, на сервере в initialProps их не будет?
да, не будет. доставай из заголовков реквеста
источник

EI

Eduard Ilyaskin in Next.js — русскоговорящее сообщество
аа, спасибо
источник

DK

Dmitry K in Next.js — русскоговорящее сообщество
Всем привет. Есть nextjs приложение, для него с помощью css custom-properties заданы две темы. В getInitialProps _app.js запрашивается текущее значение темы, хранящееся на сервере и в componentDidMount навешивается аттрибутом на :root элемент. Естественно сейчас это моргает, необходимо как-то вешать аттрибут еще на сервере. Как это можно сделать? Перемещать запрос данных в _document и там работать с <html /> тегом или есть более элегантный способ?
источник

NN

Nikita Nafranets ⎈ in Next.js — русскоговорящее сообщество
Dmitry K
Всем привет. Есть nextjs приложение, для него с помощью css custom-properties заданы две темы. В getInitialProps _app.js запрашивается текущее значение темы, хранящееся на сервере и в componentDidMount навешивается аттрибутом на :root элемент. Естественно сейчас это моргает, необходимо как-то вешать аттрибут еще на сервере. Как это можно сделать? Перемещать запрос данных в _document и там работать с <html /> тегом или есть более элегантный способ?
Да, тут надо работать через документ.
источник

s

shashkov0 in Next.js — русскоговорящее сообщество
Github Releases Notify Bot
- Use next.config env and packages to calculate hashes: #7001
- Add Flying Shuttle tests: #7000
- Set custom cacheIdentifier for babel-loader: #6982
- Add package.json to example: #7004
- Simplify profiling and add serverless target: #7007
- Make async-to-promises babel plugin experimental: #7006
- Disable terser on .min.js input files: #7008
- Replace .amp.js with withAmp(Comp): #7009
- Switch to using .next/cache for flying shuttle and terser: #7013
- Update with-graphql-hooks example to exclude SSR library from commons chunk: #7015
- Make sure AmpContext is available in _document: #7021
- Amp page level reload: #6971
- Set descriptive displayName on withRouter HOC: #7017
- Fix GitHub spelling: #7024
- Enable strict type checking on custom-server-typescript example: #7025
- Fix missing dash: 3363f26a42e5743540218d3ea46cda160ea4b560
- Update README.md: e4ceb903a1cbf85e292c542e10e87a45cda42b25
- Add x-powered-by: #7029
- Add AMP docs to README: #7031
- Re-add experimental amp config: #7030
- Remove noDirtyAmp option: #7032
- Add experimental option to enable terser loader: #7033
- Move next/router to Typescript: #7019
- Remove experimental amp config: #7046
- Remove experimental flag: #7048
- Remove client bundles for AMP only pages: #7034
- AMP fix escaped rel: #7045
- Add a dot to a note in README.md: #7053
- Updated handling of AMP page reloading: #7052

### Credits

Huge thanks to @merelinguist, @lfades, @timneutkens, @Timer, @ijjk, @shahzeb1, @crutchcorn, @HeadFox, @YIZHUANG, @omonk, @justinmchase, @Tevinthuku, @mayank23, @ajrussellaudio, @IvanJov, @nguyenkhois, @kylemh, @j0lv3r4, @alexparish, @SBoudrias, @friederbluemle, @jalcalav, and @lucas0707 for helping!
А что это за Amp добавили? Кто-то юзал уже, стоит ли его внедрять?
источник