This commit is contained in:
6
library/build/chainWebpack/banner/config.ts
Normal file
6
library/build/chainWebpack/banner/config.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
webpackBanner:
|
||||
' build: Vue Admin' +
|
||||
' Plus \n copyright: vue-admin-' +
|
||||
'beautiful.com \n time: ',
|
||||
}
|
||||
12
library/build/chainWebpack/banner/index.ts
Normal file
12
library/build/chainWebpack/banner/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
const Webpack = require('webpack')
|
||||
const { webpackBanner } = require('./config.ts')
|
||||
|
||||
module.exports = {
|
||||
createBanner: (config) => {
|
||||
config
|
||||
.plugin('banner')
|
||||
.use(Webpack.BannerPlugin, [
|
||||
`${webpackBanner}${process.env.VUE_APP_UPDATE_TIME}`,
|
||||
])
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user