mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 22:20:27 +08:00
12 lines
244 B
JavaScript
12 lines
244 B
JavaScript
const { defineConfig } = require("@vue/cli-service");
|
|
|
|
const isProduction = process.env.NODE_ENV === "production";
|
|
|
|
module.exports = defineConfig({
|
|
configureWebpack() {
|
|
return {
|
|
externals: isProduction ? ["element-plus"] : []
|
|
};
|
|
}
|
|
});
|