mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
24 lines
687 B
TypeScript
24 lines
687 B
TypeScript
import lodash from 'lodash'
|
|
import webpack, { Configuration } from 'webpack'
|
|
import { getBanner, getDefaultConfig } from './webpack.config'
|
|
import previewMeta from '../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',
|
|
},
|
|
}) as Configuration
|
|
previewConfig.plugins.push(
|
|
new webpack.BannerPlugin({
|
|
banner: getBanner(previewMeta),
|
|
raw: true,
|
|
entryOnly: true,
|
|
}),
|
|
)
|
|
|
|
// see src/client/init-vue.ts
|
|
lodash.set(previewConfig, 'resolve.alias.vue$', 'vue/dist/vue.runtime.common.prod.js')
|
|
|
|
export default previewConfig
|