1.3.0 • Published 7 years ago

ff-loader v1.3.0

Weekly downloads
1
License
-
Repository
github
Last release
7 years ago

ff-loader

Feature Flag loader for webpack

Example use this loader

module.exports = {
  entry: "./index.js",
  output: {
    path: __dirname,
    filename: "bundle.js"
  },
  module: {
    loaders: [
      {
        test: /.js/,
        loader: "ff-loader",
        include: /cont|conf/,
        query: {
          config: './conf/config.json',
        }
      },
      {
        test: /\.json$/,
        loaders: [
          'ff-loader?config=./conf/config.json',
          'json-loader',
        ]
      },
    ]
  }
};

#Config feature flag

  • add feature merged config file(json or js) one path to many paths
[
  {
    "name": "login-form",
    "state": true,
    "modules": {
      "./cont/abs.js": "./cont/bs.js",
      "./conf/app_conf.json": [
        "./conf/ff.json",
        "./conf/ff-second.json"
      ]
    }
  }
]
1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago