This package has been deprecated

Author message:

This package is now @lcdev/app-config-webpack-plugin

@lcdev/app-config-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.0 • Public • Published

App Config Webpack Plugin

Licensed under MPL 2.0 Build Status npm

import AppConfigPlugin, { regex, loader } from '@lcdev/app-config-plugin';

// in your plugins:
plugins: [
  new AppConfigPlugin(),
]

// in your loaders:
module: {
  rules: [
    { test: regex, use: { loader } },
  ],
},

Need window injection support?

plugins: [
  // this injects the configuration into <head> at build time
  new AppConfigPlugin({ headerInjection: true }),
]

module: {
  rules: [
    {
      test: regex,
      use: {
        loader,
        options: {
          // this reads the configuration from <head> instead of injecting it at build time
          headerInjection: true,
        },
      },
    },
  ],
},

Readme

Keywords

none

Package Sidebar

Install

npm i @lcdev/app-config-plugin

Weekly Downloads

2

Version

2.0.0-alpha.0

License

MPL-2.0

Unpacked Size

32.5 kB

Total Files

15

Last publish

Collaborators

  • jbrandtlc
  • joelgallant-me
  • servalldev
  • gregnr