openflexure-microscope-server/webpack.config.js
2019-11-11 16:33:43 +00:00

12 lines
444 B
JavaScript

// this file is for cases where we need to access the
// webpack config as a file when using CLI commands.
let service = process.VUE_CLI_SERVICE;
if (!service || process.env.VUE_CLI_API_MODE) {
const Service = require("@vue/cli-service/lib/Service");
service = new Service(process.env.VUE_CLI_CONTEXT || process.cwd());
service.init(process.env.VUE_CLI_MODE || process.env.NODE_ENV);
}
module.exports = service.resolveWebpackConfig();