0.6.4 • Published 3 years ago

@lightspeed/config-next v0.6.4

Weekly downloads
612
License
MIT
Repository
-
Last release
3 years ago

@lightspeed/config-next

npm version

Introduction

Next.js configuration and plugins in a convenient package.

Requirements

  • Please ensure you are using next@9 or higher

Features

  • ✨ Enables TypeScript in your Next.js app
  • 🔥 Configures HMR polling to run dev mode in Docker
  • ➡ Absolute path resolving for root src:
// From anywhere in your app, this will resolve to `<root>/src/components/MyComponent.(js,ts,jsx,tsx)
import { MyComponent } from 'src/components/MyComponent';

Quick Start

  1. Install the dependency in your webapp.
yarn add next @lightspeed/config-next
  1. Consume the Next.js plugin.
// next.config.js
const withLightspeed = require('@lightspeed/config-next');
module.exports = withLightspeed();
  1. Consume the Babel preset.
// babel.config.js
module.exports = {
  presets: ['@lightspeed/config-next/babel-preset-next'],
};
  1. Optionally, extend the configuration as you see fit.
// babel.config.js
module.exports = {
  presets: [
    [
      '@lightspeed/config-next/babel-preset-next',
      {
        'next-babel': {
          'preset-env': {
            targets: {
              browsers: ['not ie'],
            },
          },
        },
      },
    ],
  ],
};
0.6.4

3 years ago

0.6.3

5 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago