code: function(pluginOptions, options) {
          options.isFactoryFunctionRun = true;
          return new GrawlixPlugin({
            name: 'blank-plugin-2',
            init: function(opts) {
              opts.isLoaded = true;
            }
          });
        }
docs: factory function plugin