mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
33 lines
783 B
JavaScript
33 lines
783 B
JavaScript
const path = require('path');
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, 'src'),
|
|
target: 'web',
|
|
resolve: {
|
|
modules: [
|
|
path.resolve(__dirname, 'node_modules')
|
|
]
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(),
|
|
new CopyPlugin({
|
|
patterns: [
|
|
{
|
|
from: 'config*.json',
|
|
to: '/'
|
|
},
|
|
{
|
|
from: 'themes/',
|
|
to: 'themes/'
|
|
}
|
|
]
|
|
})
|
|
],
|
|
output: {
|
|
filename: '[name].bundle.js',
|
|
path: path.resolve(__dirname, 'dist')
|
|
}
|
|
};
|