1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-12-15 15:04:25 +08:00

基本逻辑可实现

This commit is contained in:
Shangbin
2021-04-11 22:33:19 +08:00
parent e5a2ed4484
commit d51f6b0a27
15 changed files with 1354 additions and 1212 deletions

View File

@@ -1,9 +1,24 @@
const path = require("path");
module.exports = {
css: { extract: false },
configureWebpack:
process.env.NODE_ENV === "production"
? {
entry: "./index.js",
output: {
filename: "build.js",
library: "vccui",
libraryTarget: "umd",
umdNamedDefine: true,
},
}
: {
entry: "./main.js"
},
lintOnSave: true,
chainWebpack: (config) => {
const vueRule = config.module.rule("vue");
@@ -17,7 +32,7 @@ module.exports = {
};
});
config.resolve.alias.set("vue$", "vue/dist/vue.esm.js")
config.resolve.alias.set("vue$", "vue/dist/vue.esm.js");
},
publicPath: process.env.PUBLIC_PATH,
@@ -25,12 +40,10 @@ module.exports = {
pluginOptions: {
quasar: {
importStrategy: 'kebab',
rtlSupport: false
}
importStrategy: "kebab",
rtlSupport: false,
},
},
transpileDependencies: [
'quasar'
],
transpileDependencies: ["quasar"],
};