Skip to content

Commit

Permalink
ci: 新增BannerPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 1, 2021
1 parent ce8e54c commit ea7562c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const TerserPlugin = require('terser-webpack-plugin');
const path = require('path');
const webpack = require('webpack');

function resolve(dir) {
return path.join(__dirname, dir);
Expand Down Expand Up @@ -43,6 +44,7 @@ module.exports = {
},
configureWebpack: (config) => {
const plugins = [
new webpack.BannerPlugin('@author BoBo<[email protected]>'),
new TerserPlugin({
terserOptions: {
compress: {
Expand Down

0 comments on commit ea7562c

Please sign in to comment.