code: function SwRegisterPlugin(options = {}) {
      let filePath = path.resolve(cwd, (options.filePath || './src/sw-register.js'));
  
      if (!fs.existsSync(filePath)) {
          filePath = path.resolve(__dirname, 'templates', 'sw-register.js');
      }
      this.filePath = filePath;
      this.fileName = options.output || path.basename(filePath);
      this.version = options.version || getVersion();
      this.prefix = options.prefix;
      this.excludes = options.excludes || [];
      this.includes = options.includes || [];
      this.scope = options.scope || '/';
      this.entries = options.entries || [];
      this.entriesInfo = {};
  }
docs: /* eslint-disable fecs-prefer-class 
  sw Register 插件
  
  @constructor
  @param {Object} options 参数