v1.1.0.Beta-2
This commit is contained in:
@@ -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
|
||||
@License:Apache License 2.0`;
|
||||
|
||||
const webpackConfig = {
|
||||
entry: {
|
||||
@@ -81,7 +90,8 @@ const webpackConfig = {
|
||||
minify: {
|
||||
collapseWhitespace: true
|
||||
}
|
||||
}),
|
||||
}),
|
||||
new webpack.BannerPlugin(banner),
|
||||
new VueLoaderPlugin(),
|
||||
],
|
||||
devServer: {
|
||||
|
||||
Reference in New Issue
Block a user