v1.1.0.Beta-2

This commit is contained in:
maplemei
2019-11-20 18:47:49 +08:00
parent 1e9d58f0e6
commit ef56e82800
10 changed files with 99 additions and 32 deletions

View File

@@ -1,3 +1,4 @@
const pkg = require('../package.json');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
@@ -6,7 +7,15 @@ const {
CleanWebpackPlugin
} = require('clean-webpack-plugin');
const isProd = process.env.NODE_ENV === 'prod';
const isProd = process.env.NODE_ENV === 'prod';
const banner =
`@Title: ${pkg.name}
@Version: ${pkg.version}
@Description基于layui的多选解决方案
@Site: https://gitee.com/maplemei/xm-select
@Author: maplemei
@LicenseApache License 2.0`;
const webpackConfig = {
entry: {
@@ -81,7 +90,8 @@ const webpackConfig = {
minify: {
collapseWhitespace: true
}
}),
}),
new webpack.BannerPlugin(banner),
new VueLoaderPlugin(),
],
devServer: {