mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
webpack cdn config
This commit is contained in:
parent
65da018a90
commit
64b780056a
@ -6,7 +6,7 @@ var devConfig = require('./webpack.config.dev.js');
|
|||||||
module.exports = merge(devConfig, {
|
module.exports = merge(devConfig, {
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, '../docs/dist'),
|
path: path.join(__dirname, '../docs/dist'),
|
||||||
publicPath: '/zanui/vue',
|
publicPath: 'https://b.yzcdn.cn/zanui/vue',
|
||||||
filename: '[name].[hash:8].js',
|
filename: '[name].[hash:8].js',
|
||||||
umdNamedDefine: true
|
umdNamedDefine: true
|
||||||
},
|
},
|
||||||
|
@ -124,6 +124,14 @@
|
|||||||
<van-icon name="password-not-view"></van-icon>
|
<van-icon name="password-not-view"></van-icon>
|
||||||
<span>password-not-view</span>
|
<span>password-not-view</span>
|
||||||
</van-col>
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-nav"></van-icon>
|
||||||
|
<span>wap-nav</span>
|
||||||
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-home"></van-icon>
|
||||||
|
<span>wap-home</span>
|
||||||
|
</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
|
|
||||||
</example-block></section></template>
|
</example-block></section></template>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</example-block><example-block title="带toolbar的Picker">
|
</example-block><example-block title="带toolbar的Picker">
|
||||||
<van-picker :columns="pickerColumns" show-toolbar="" @change="handlePickerChange" @cancel="handlePickerCancel" @confirm="handlePickerConfirm"></van-picker>
|
<van-picker :title="title" :columns="pickerColumns" show-toolbar="" @change="handlePickerChange" @cancel="handlePickerCancel" @confirm="handlePickerConfirm"></van-picker>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ const citys = {
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: '地区选择',
|
||||||
pickerColumns: [
|
pickerColumns: [
|
||||||
{
|
{
|
||||||
values: Object.keys(citys),
|
values: Object.keys(citys),
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
"build:components": "webpack --progress --hide-modules --config build/webpack.components.js",
|
"build:components": "webpack --progress --hide-modules --config build/webpack.components.js",
|
||||||
"build:vant": "webpack --progress --hide-modules --config build/webpack.build.js && webpack --progress --hide-modules --config build/webpack.build.min.js",
|
"build:vant": "webpack --progress --hide-modules --config build/webpack.build.js && webpack --progress --hide-modules --config build/webpack.build.min.js",
|
||||||
"build:example": "node build/genExamples.js",
|
"build:example": "node build/genExamples.js",
|
||||||
"deploy": "npm run deploy:docs && gh-pages -d docs/dist --remote youzan && rimraf docs/dist",
|
"deploy": "npm run deploy:docs && npm run deploy:cdn && gh-pages -d docs/dist --remote youzan && rimraf docs/dist",
|
||||||
|
"deploy:cdn": "superman cdn /zanui/vue docs/dist/*.js docs/dist/*.css",
|
||||||
"deploy:docs": "rimraf docs/dist && npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.prod.js",
|
"deploy:docs": "rimraf docs/dist && npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.prod.js",
|
||||||
"dist": "npm run clean && npm run build:file && npm run lint && npm run build:vant && npm run build:components && npm run build:utils && npm run build:vant-css",
|
"dist": "npm run clean && npm run build:file && npm run lint && npm run build:vant && npm run build:components && npm run build:utils && npm run build:vant-css",
|
||||||
"clean": "rimraf lib && rimraf packages/*/lib",
|
"clean": "rimraf lib && rimraf packages/*/lib",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user