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

12 lines
244 B
JavaScript
Raw Normal View History

2023-04-03 19:02:44 +08:00
const { defineConfig } = require("@vue/cli-service");
const isProduction = process.env.NODE_ENV === "production";
module.exports = defineConfig({
configureWebpack() {
return {
externals: isProduction ? ["element-plus"] : []
};
}
});