mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +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 ISNTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});';
|
||||
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
|
||||
import '../packages/zenui/src/index.pcss';
|
||||
|
||||
@ -31,13 +25,6 @@ if (typeof window !== 'undefined' && window.Vue) {
|
||||
module.exports = {
|
||||
install,
|
||||
version: '{{version}}',
|
||||
axios,
|
||||
_: {
|
||||
foreach,
|
||||
filter,
|
||||
find,
|
||||
map
|
||||
},
|
||||
{{list}}
|
||||
};
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user