Skip to content

Commit 0d62d43

Browse files
committed
update build config & deps;
add google analytics
1 parent 9b2c87f commit 0d62d43

File tree

12 files changed

+12519
-143
lines changed

12 files changed

+12519
-143
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"./.babelrc.js"
4+
]
5+
}

.babelrc.js

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
let isProduction = process.env.NODE_ENV === 'production'
2+
3+
module.exports = {
4+
presets: [
5+
'stage-2',
6+
['env', {
7+
modules: false,
8+
useBuiltIns: true,
9+
loose: isProduction,
10+
targets: { android: '4.4', ios: '9' },
11+
exclude: [
12+
'transform-regenerator',
13+
'es6.typed.uint8-clamped-array',
14+
'es6.typed.float64-array',
15+
'es6.map',
16+
'es6.set',
17+
'es6.weak-map',
18+
'es6.weak-set',
19+
'es6.reflect.apply',
20+
'es6.reflect.construct',
21+
'es6.reflect.define-property',
22+
'es6.reflect.delete-property',
23+
'es6.reflect.get',
24+
'es6.reflect.get-own-property-descriptor',
25+
'es6.reflect.get-prototype-of',
26+
'es6.reflect.has',
27+
'es6.reflect.is-extensible',
28+
'es6.reflect.own-keys',
29+
'es6.reflect.prevent-extensions',
30+
'es6.reflect.set',
31+
'es6.reflect.set-prototype-of',
32+
//'es6.promise',
33+
'es6.symbol',
34+
//'es6.object.assign',
35+
'es6.object.is',
36+
'es6.object.set-prototype-of',
37+
'es6.function.name',
38+
'es6.string.raw',
39+
'es6.string.from-code-point',
40+
'es6.string.code-point-at',
41+
'es6.string.repeat',
42+
//'es6.string.starts-with',
43+
'es6.string.ends-with',
44+
//'es6.string.includes',
45+
'es6.regexp.flags',
46+
'es6.regexp.match',
47+
'es6.regexp.replace',
48+
'es6.regexp.split',
49+
'es6.regexp.search',
50+
'es6.array.from',
51+
'es6.array.of',
52+
'es6.array.copy-within',
53+
//'es6.array.find',
54+
//'es6.array.find-index',
55+
//'es6.array.fill',
56+
'es6.array.iterator',
57+
//'es6.number.is-finite',
58+
'es6.number.is-integer',
59+
'es6.number.is-safe-integer',
60+
//'es6.number.is-nan',
61+
'es6.number.epsilon',
62+
'es6.number.min-safe-integer',
63+
'es6.number.max-safe-integer',
64+
'es6.math.acosh',
65+
'es6.math.asinh',
66+
'es6.math.atanh',
67+
'es6.math.cbrt',
68+
'es6.math.clz32',
69+
'es6.math.cosh',
70+
'es6.math.expm1',
71+
'es6.math.fround',
72+
'es6.math.hypot',
73+
'es6.math.imul',
74+
'es6.math.log1p',
75+
'es6.math.log10',
76+
'es6.math.log2',
77+
'es6.math.sign',
78+
'es6.math.sinh',
79+
'es6.math.tanh',
80+
'es6.math.trunc',
81+
// 'es7.array.includes',
82+
'es7.object.values',
83+
'es7.object.entries',
84+
'es7.object.get-own-property-descriptors',
85+
//'es7.string.pad-start',
86+
//'es7.string.pad-end',
87+
'web.timers',
88+
'web.immediate',
89+
'web.dom.iterable'
90+
]
91+
}]
92+
],
93+
plugins: [
94+
'transform-vue-jsx',
95+
'transform-do-expressions'
96+
]
97+
}

404.html

Lines changed: 33 additions & 17 deletions
Large diffs are not rendered by default.

gulpfile.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

index.html

Lines changed: 33 additions & 17 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)