mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
打包配置去除loadsh依赖
This commit is contained in:
parent
20683ba131
commit
6629dcce59
@ -8,12 +8,6 @@ var OUTPUT_PATH = path.join(__dirname, '../../src/index.js');
|
|||||||
var IMPORT_TEMPLATE = 'import {{name}} from \'../packages/{{package}}/index.js\';';
|
var IMPORT_TEMPLATE = 'import {{name}} from \'../packages/{{package}}/index.js\';';
|
||||||
var ISNTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});';
|
var ISNTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});';
|
||||||
var MAIN_TEMPLATE = `{{include}}
|
var MAIN_TEMPLATE = `{{include}}
|
||||||
import 'es6-promise/auto';
|
|
||||||
import axios from 'axios';
|
|
||||||
import foreach from 'lodash/foreach';
|
|
||||||
import filter from 'lodash/filter';
|
|
||||||
import find from 'lodash/find';
|
|
||||||
import map from 'lodash/map';
|
|
||||||
// zenui
|
// zenui
|
||||||
import '../packages/zenui/src/index.pcss';
|
import '../packages/zenui/src/index.pcss';
|
||||||
|
|
||||||
@ -31,13 +25,6 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
install,
|
install,
|
||||||
version: '{{version}}',
|
version: '{{version}}',
|
||||||
axios,
|
|
||||||
_: {
|
|
||||||
foreach,
|
|
||||||
filter,
|
|
||||||
find,
|
|
||||||
map
|
|
||||||
},
|
|
||||||
{{list}}
|
{{list}}
|
||||||
};
|
};
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user