How to use the @vue/cli-service function in @vue/cli-service

To help you get started, we’ve selected a few @vue/cli-service examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ditojs / dito / packages / server / src / controllers / AdminController.js View on Github external
getWebpackConfig() {
    // Use VueService to create full webpack config for us:
    const plugins = [{ id: '@vue/cli-plugin-babel', apply: vuePluginBabel }]
    if (this.config.build.eslint) {
      plugins.push({ id: '@vue/cli-plugin-eslint', apply: vuePluginEslint })
    }
    const service = new VueService(this.getPath('build'), {
      inlineOptions: this.getVueConfig(),
      plugins
    })
    service.init(this.mode)
    return service.resolveWebpackConfig()
  }
}

@vue/cli-service

local service for vue-cli projects

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis