webpack.config.js 424 B

123456789101112
  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()