1. 18 11月, 2020 1 次提交
  2. 16 11月, 2020 1 次提交
  3. 14 11月, 2020 1 次提交
    • J
      Fix minifying inline CSS comments (#19167) · 61c3db73
      Joe Haddad 提交于
      We accidentally regressed back in 9.5 and dropped support for inline CSS comments. PostCSS always parses these as pass-through (and not a syntax error), which can cause problems when minifying.
      
      Browsers do a similar thing and ignore the comments.
      
      To ensure we generate valid CSS, this adds support for stripping the CSS comments from the build.
      
      --- 
      
      Fixes #15589
      Closes #17130
      61c3db73
  4. 12 11月, 2020 3 次提交
  5. 11 11月, 2020 1 次提交
  6. 09 11月, 2020 1 次提交
  7. 07 11月, 2020 1 次提交
  8. 06 11月, 2020 4 次提交
  9. 05 11月, 2020 3 次提交
    • G
      ncc Babel inlining (#18768) · 64850a83
      Guy Bedford 提交于
      This adds inlining for Babel and the Babel plugins used in next.
      
      This is based to the PR at https://github.com/vercel/next.js/pull/18823.
      
      The approach is to make one large bundle and then separate out the individual packages from that in order to avoid duplications.
      
      In the first attempt the Babel bundle size was 10MB... using "resolutions" in the Yarn workspace to reduce the duplicated packages this was brought down to a 2.8MB bundle for Babel and all the used plugins which is exactly the expected file size here.
      
      This will thus add a 2.8MB download size to the next package, but save downloading any babel dependencies separately, removing a large number of package dependencies from the overall install.
      64850a83
    • B
    • G
      Update ncc (#18823) · 7b66da83
      Guy Bedford 提交于
      This updates to the latest ncc@0.24.1 release.
      
      Initially I thought chalk needed to be removed to make this work, but it turns out it was a caching issue.
      
      I've also added a cache clear to the rebuild command to avoid these issues hopefully in future.
      7b66da83
  10. 04 11月, 2020 2 次提交
  11. 25 10月, 2020 2 次提交
  12. 23 10月, 2020 2 次提交
  13. 22 10月, 2020 2 次提交
  14. 21 10月, 2020 3 次提交
  15. 19 10月, 2020 1 次提交
  16. 18 10月, 2020 1 次提交
  17. 16 10月, 2020 1 次提交
  18. 14 10月, 2020 1 次提交
  19. 08 10月, 2020 1 次提交
    • J
      Add initial changes for i18n support (#17370) · b2d1d87e
      JJ Kasper 提交于
      This adds the initial changes outlined in the [i18n routing RFC](https://github.com/vercel/next.js/discussions/17078). This currently treats the locale prefix on routes similar to how the basePath is treated in that the config doesn't require any changes to your pages directory and is automatically stripped/added based on the detected locale that should be used. 
      
      Currently redirecting occurs on the `/` route if a locale is detected regardless of if an optional catch-all route would match the `/` route or not we may want to investigate whether we want to disable this redirection automatically if an `/index.js` file isn't present at root of the pages directory. 
      
      TODO: 
      
      - [x] ensure locale detection/populating works in serverless mode correctly
      - [x] add tests for locale handling in different modes, fallback/getStaticProps/getServerSideProps
      
      To be continued in fall-up PRs
      
      - [ ] add tests for revalidate, auto-export, basePath + i18n
      - [ ] add mapping of domains with locales
      - [ ] investigate detecting locale against non-index routes and populating the locale in a cookie
      
      x-ref: https://github.com/vercel/next.js/issues/17110
      b2d1d87e
  20. 15 9月, 2020 1 次提交
  21. 13 9月, 2020 1 次提交
  22. 12 9月, 2020 2 次提交
  23. 11 9月, 2020 3 次提交
  24. 10 9月, 2020 1 次提交