1.3.1 • Published 3 years ago

js.conf.d-webpack v1.3.1

Weekly downloads
23
License
BSD-3-Clause
Repository
github
Last release
3 years ago

js.conf.d-webpack

A webpack plugin for configuration management, based on js.conf.d.

Usage

To use js.conf.d-webpack, you need to add it to your webpack config:

const JsconfdPlugin = require('js.conf.d-webpack')

const config = {
  // ...
  plugins: [
    // ...
    new JsconfdPlugin({
      folders: ['/etc/my-config', '~/.my-config', './config']
    })
  ]
}

Once added, to access the config from your application just do:

import config from '#js.conf.d'

The plugin will replace that special path with the aggregated config.

1.3.1

3 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago