[bugfix] Icon template (#1091)

This commit is contained in:
neverland 2018-05-17 17:18:23 +08:00 committed by GitHub
parent 22cff2faec
commit e73e950662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 7 deletions

View File

@ -2,7 +2,9 @@ const path = require('path');
const config = require('./webpack.dev.js');
const isMinify = process.argv.indexOf('-p') !== -1;
module.exports = Object.assign({}, config, {
delete config.serve;
module.exports = Object.assign(config, {
mode: 'production',
entry: {
'vant': './packages/index.js'

View File

@ -1,7 +1,9 @@
const path = require('path');
const devConfig = require('./webpack.dev.js');
const config = require('./webpack.dev.js');
module.exports = Object.assign({}, devConfig, {
delete config.serve;
module.exports = Object.assign(config, {
mode: 'production',
output: {
path: path.join(__dirname, '../docs/dist'),

View File

@ -1,3 +1,4 @@
/* eslint-disable camelcase */
import Vue from 'vue';
import { mount, TransitionStub } from '@vue/test-utils';
import { renderToString } from '@vue/server-test-utils';

View File

@ -16,10 +16,9 @@
&__info {
color: #fff;
left: 50%;
left: 100%;
top: -.5em;
font-size: .5em;
margin-left: .8em;
padding: 0 .3em;
text-align: center;
min-width: 1.2em;
@ -28,6 +27,7 @@
border-radius: .6em;
box-sizing: border-box;
background-color: $red;
transform: translateX(-50%);
font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
}

View File

@ -2,5 +2,5 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('./vant-icon-03d6f2.ttf') format('truetype');
src: url('./vant-icon-254016.ttf') format('truetype');
}

View File

@ -4,7 +4,7 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('https://img.yzcdn.cn/zanui/icon/vant-icon-03d6f2.ttf') format('truetype');
src: url('https://img.yzcdn.cn/zanui/icon/vant-icon-254016.ttf') format('truetype');
}
.van-icon {