1.46.2 • Published 8 months ago

@episclera/next-config v1.46.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

GitHub Multipack

Usage

Usage is similar to next-compose-plugins

Install: npm i -D @episclera/next-config

And in your next.config.js file just put this content.

const nextConfig = require('@episclera/next-config')
module.exports = nextConfig()

OR if you want to provide custom plugins or next options or webpack options

The API for plugins is the same as in next-compose-plugins docs

const nextConfig = require('@episclera/next-config')
const { mergeConfigs } = require('@episclera/multipack-utils')

module.exports = nextConfig([myPlugin, [secondPlugin, optionsForSecondPlugin]], {
  publicRuntimeConfig: {
    HOME_ROUTE_PATH: '/welcome',
  },
  webpack: config =>
    mergeConfigs(config, {
      resolve: {
        alias: {
          myAlias: './myPath',
        },
      },
    }),
})

Pass options to less loader

We use This plugin to load less so you can use any option available for this plugin.

const nextConfig = require('@episclera/next-config')

module.exports = nextConfig([myPlugin], {
  lessOptions: {
    modifyVars: {...},
    cssLoaderOptions: {...},
  },
})

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or you can sponsor via Open Collective

Open Collective

Author

@episclera/multipack © Episclera, Released under the MIT License. Authored and maintained by Episclera with help from contributors (list).

If you like this repository star⭐ and watch👀 on GitHub.

1.46.0

10 months ago

1.46.2

8 months ago

1.46.1

10 months ago

1.45.1

10 months ago

1.44.0

12 months ago

1.44.1

12 months ago

1.43.0

12 months ago

1.42.0

2 years ago

1.42.1

2 years ago

1.41.9

2 years ago

1.41.3

2 years ago

1.41.5

2 years ago

1.41.4

2 years ago

1.41.7

2 years ago

1.41.6

2 years ago

1.41.8

2 years ago

1.41.2

2 years ago

1.37.0

2 years ago

1.39.1

2 years ago

1.39.0

2 years ago

1.40.0

2 years ago

1.38.2

2 years ago

1.38.3

2 years ago

1.38.0

2 years ago

1.38.1

2 years ago

1.38.5

2 years ago

1.41.1

2 years ago

1.41.0

2 years ago

1.36.0

2 years ago

1.36.1

2 years ago

1.35.2

3 years ago

1.35.1

3 years ago

1.35.0

3 years ago

1.34.0

3 years ago

1.32.1

3 years ago

1.33.0

3 years ago

1.32.0

3 years ago

1.31.1

3 years ago

1.31.0

3 years ago

1.29.0

3 years ago

1.28.0

3 years ago

1.30.0

3 years ago

1.30.1

3 years ago

1.27.0

3 years ago

1.27.1

3 years ago

1.26.1

3 years ago

1.15.0

3 years ago

1.14.0

3 years ago

1.13.1

3 years ago

1.12.0

3 years ago

1.19.0

3 years ago

1.18.0

3 years ago

1.17.0

3 years ago

1.16.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.22.0

3 years ago

1.20.0

3 years ago

1.25.0

3 years ago

1.24.1

3 years ago

1.26.0

3 years ago

1.22.1

3 years ago

1.24.0

3 years ago

1.23.1

3 years ago

1.25.2

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago