mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-07 13:44:06 +08:00
试验采用vue-cli-service的方式进行构建,都可行
This commit is contained in:
parent
d51f6b0a27
commit
29b1b5acb8
2
main.js
2
main.js
@ -4,7 +4,7 @@ import "element-ui/lib/theme-chalk/index.css";
|
||||
|
||||
import AntdUI from "ant-design-vue";
|
||||
import "ant-design-vue/dist/antd.css";
|
||||
import Main from "./dist/vue-component-creater-ui.common.js";
|
||||
import Main from "./dist/vcc.common.js";
|
||||
|
||||
Vue.use(ElementUI);
|
||||
Vue.use(AntdUI);
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./src/main.js",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --open --port 8008",
|
||||
"build": "vue-cli-service build --target lib ./index.js",
|
||||
"build": "vue-cli-service build --target lib --name vcc ./src/components-v2/Main.jsvue",
|
||||
"compileAndbuild:dev": "npm run compileComponent && vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
|
@ -72,7 +72,7 @@ window.methodSourceMap = methodData;
|
||||
window.styleSourceMap = styleData;
|
||||
|
||||
export default {
|
||||
name: "vcc_ui",
|
||||
name: "vcc",
|
||||
props: [],
|
||||
components: {
|
||||
RawComponents,
|
||||
|
@ -8,7 +8,7 @@ module.exports = {
|
||||
entry: "./index.js",
|
||||
output: {
|
||||
filename: "build.js",
|
||||
library: "vccui",
|
||||
library: "vcc",
|
||||
libraryTarget: "umd",
|
||||
umdNamedDefine: true,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user