cool-admin-vue/packages/crud/vue.config.js

12 lines
244 B
JavaScript
Raw Normal View History

2023-09-28 13:50:15 +08:00
const { defineConfig } = require("@vue/cli-service");
const isProduction = process.env.NODE_ENV === "production";
module.exports = defineConfig({
configureWebpack() {
return {
externals: isProduction ? ["element-plus"] : []
};
}
});