mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
19 lines
521 B
JavaScript
19 lines
521 B
JavaScript
const webpack = require('webpack')
|
|
const { getBanner, getDefaultConfig } = require('./webpack.config')
|
|
const previewMeta = require('../src/client/bilibili-evolved.preview.meta.json')
|
|
|
|
const previewConfig = Object.assign(getDefaultConfig(), {
|
|
entry: './src/client/bilibili-evolved.ts',
|
|
output: {
|
|
filename: 'bilibili-evolved.dev.user.js',
|
|
},
|
|
})
|
|
previewConfig.plugins.push(
|
|
new webpack.BannerPlugin({
|
|
banner: getBanner(previewMeta),
|
|
raw: true,
|
|
entryOnly: true,
|
|
}),
|
|
)
|
|
module.exports = previewConfig
|