UNPKG

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