mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-07-23 11:49:35 +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 AntdUI from "ant-design-vue";
|
||||||
import "ant-design-vue/dist/antd.css";
|
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(ElementUI);
|
||||||
Vue.use(AntdUI);
|
Vue.use(AntdUI);
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"main": "./src/main.js",
|
"main": "./src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve --open --port 8008",
|
"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",
|
"compileAndbuild:dev": "npm run compileComponent && vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"build:prod": "vue-cli-service build --mode production",
|
"build:prod": "vue-cli-service build --mode production",
|
||||||
|
@ -72,7 +72,7 @@ window.methodSourceMap = methodData;
|
|||||||
window.styleSourceMap = styleData;
|
window.styleSourceMap = styleData;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vcc_ui",
|
name: "vcc",
|
||||||
props: [],
|
props: [],
|
||||||
components: {
|
components: {
|
||||||
RawComponents,
|
RawComponents,
|
||||||
|
@ -8,7 +8,7 @@ module.exports = {
|
|||||||
entry: "./index.js",
|
entry: "./index.js",
|
||||||
output: {
|
output: {
|
||||||
filename: "build.js",
|
filename: "build.js",
|
||||||
library: "vccui",
|
library: "vcc",
|
||||||
libraryTarget: "umd",
|
libraryTarget: "umd",
|
||||||
umdNamedDefine: true,
|
umdNamedDefine: true,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user