mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
parent
237502c3ec
commit
6331645a51
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
packages/**/lib
|
packages/**/lib
|
||||||
|
lib/
|
||||||
lib/*
|
lib/*
|
||||||
!lib/index.js
|
!lib/index.js
|
||||||
!lib/style.css
|
!lib/style.css
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var getPostcssPlugin = require('./utils/postcss_pipe');
|
var getPostcssPlugin = require('./utils/postcss_pipe');
|
||||||
var config = require('./webpack.config.js');
|
var config = require('./webpack.config.dev.js');
|
||||||
|
|
||||||
config.entry = {
|
config.entry = {
|
||||||
'vant': './src/index.js'
|
'vant': './src/index.js'
|
||||||
|
6
build/webpack.build.min.js
vendored
6
build/webpack.build.min.js
vendored
@ -1,7 +1,9 @@
|
|||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var config = require('./webpack.config.js');
|
var config = require('./webpack.build.js');
|
||||||
|
|
||||||
config.output.filename = config.output.filename.replace(/\.js$/, '.min.js');
|
config.entry = {
|
||||||
|
'index': './src/index.js'
|
||||||
|
};
|
||||||
|
|
||||||
config.plugins = config.plugins.concat([
|
config.plugins = config.plugins.concat([
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"description": "有赞vue wap组件库",
|
"description": "有赞vue wap组件库",
|
||||||
"main": "lib/vant.js",
|
"main": "lib/vant.js",
|
||||||
"style": "lib/vant-css/index.css",
|
"style": "lib/vant-css/index.css",
|
||||||
|
"unpkg": "lib/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
"lib",
|
||||||
"src",
|
"src",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user