You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
424 B

3 months ago
  1. // this file is for cases where we need to access the
  2. // webpack config as a file when using CLI commands.
  3. let service = process.VUE_CLI_SERVICE
  4. if (!service || process.env.VUE_CLI_API_MODE) {
  5. const Service = require('./lib/Service')
  6. service = new Service(process.env.VUE_CLI_CONTEXT || process.cwd())
  7. service.init(process.env.VUE_CLI_MODE || process.env.NODE_ENV)
  8. }
  9. module.exports = service.resolveWebpackConfig()