1. 14 8月, 2018 6 次提交
  2. 13 8月, 2018 1 次提交
  3. 12 8月, 2018 2 次提交
    • T
      update with-loading example (#4836) · e8c1eaec
      Tomek 提交于
      Changes:
      
      * Split `Header` component trough `_document.js` and `_app.js`
      * Attached Router events with a way described in the [documentation](https://github.com/zeit/next.js#router-events) (though in the documentation is says it should be `Router.events.on` while I managed to get it working only by `Router.router.events.on` and I had to place it inside `componentDidMount`)
      e8c1eaec
    • O
      Fix broken hash scroll logic (#4766) · b02fff63
      Olivier Tassinari 提交于
      `<Container>` does not receive any property. There is no way the *scrollToHash* logic can work right now. I believe it's a regression. It was working fine at some point. I'm sorry, I'm too lazy to add a test.
      
      This fix was tested on Material-UI 👌.
      
      This bug reproduction is the following:
      As soon as you want to transition to a new page with a hash. The scroll doesn't change.
      - start on pageA
      - you scrollTop to 100
      - you move to pageB#hash
      - you stay at scrollTop 100, but #hash is at scrollTop 400.
      b02fff63
  4. 11 8月, 2018 2 次提交
  5. 10 8月, 2018 2 次提交
  6. 09 8月, 2018 3 次提交
  7. 08 8月, 2018 3 次提交
    • H
      Remove with-global-stylesheet example (#4913) · 9018da11
      HaNdTriX 提交于
      * Deprecate with-global-stylesheet example
      
      Use @zeit/next-css instead
      
      https://github.com/zeit/next-plugins/tree/master/packages/next-css
      
      RELATED ISSUE: #4902
      
      * Deprecate with-global-stylesheet-simple example
      
      Use @zeit/next-css instead
      
      https://github.com/zeit/next-plugins/tree/master/packages/next-css
      
      RELATED ISSUE: #4902
      9018da11
    • C
      [BUG] Fix emit-file-loader compatibility with Webpack 4 (#4918) · b50bad56
      Connor Bär 提交于
      ## Context
      
      When upgrading to Next.js 6.1.1-canary.4 and using the `emit-file-loader` included in Next.js, the following error is thrown:
      
      ```bash
       error  in ./src/graveyard/pages/_app.scss
      Module build failed (from ../node_modules/next/dist/build/webpack/loaders/emit-file-loader.js):
      TypeError: Cannot read property 'context' of undefined
          at Object.module.exports (~/project-root/node_modules/next/dist/build/webpack/load
      ers/emit-file-loader.js:27:68)
      
       @ ./src/pages/_app.js 35:0-53 156:17-26 157:13-22
       @ multi ./pages/_app.js
      ```
      
      `next.config.js` (shortened):
      ```js
      module.exports = {
        webpack: (config, { dev }) => {
          config.module.rules.push({
            test: /\.scss$/,
            use: [
              {
                loader: 'emit-file-loader',
                options: {
                  name: 'dist/[path][name].[ext].js'
                }
              },
              {
                loader: 'babel-loader',
                options: {
                  babelrc: false,
                  extends: path.resolve(__dirname, './src/.babelrc')
                }
              },
              'styled-jsx-css-loader',
              { loader: 'postcss-loader', options: { sourceMap: dev } },
              {
                loader: 'sass-loader',
                options: {
                  sourceMap: dev
                }
              }
            ]
          });
      
          return config;
        }
      };
      ```
      
      ## Suggested Fix
      
      A quick Google search brought me to a [related issue in `webpack-loader`](https://github.com/webpack-contrib/worker-loader/issues/125). As pointed out in the [Webpack docs](https://webpack.js.org/api/loaders/#this-rootcontext):
      
      > Starting with webpack 4, the formerly `this.options.context` is provided as `this.rootContext`.
      
      This PR makes this change while maintaining backward compatibility.
      
      ## System information
      
      Next.js: 6.1.1-canary.4
      Node: v9.3.0
      b50bad56
    • T
      Set correct status for sigint (#4917) · 6de99ebc
      Tim Neutkens 提交于
      Fixes #4916
      6de99ebc
  8. 07 8月, 2018 7 次提交
  9. 06 8月, 2018 3 次提交
  10. 05 8月, 2018 3 次提交
  11. 01 8月, 2018 4 次提交
  12. 31 7月, 2018 1 次提交
  13. 30 7月, 2018 1 次提交
  14. 28 7月, 2018 2 次提交