js.conf.d-webpack

1.3.1 • Public • Published

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i js.conf.d-webpack

    Weekly Downloads

    18

    Version

    1.3.1

    License

    BSD-3-Clause

    Unpacked Size

    4.19 kB

    Total Files

    4

    Last publish

    Collaborators

    • mancontr