mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-30 09:40:58 +00:00
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
const path = require("path");
|
|
|
|
const CopyPlugin = require("copy-webpack-plugin");
|
|
|
|
const Assets = [
|
|
"alameda/alameda.js",
|
|
"native-promise-only/npo.js",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker.js",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker.data",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker.wasm",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.js",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.data",
|
|
"libass-wasm/dist/js/subtitles-octopus-worker-legacy.js.mem"
|
|
];
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, "src"),
|
|
entry: "./bundle.js",
|
|
resolve: {
|
|
modules: [
|
|
path.resolve(__dirname, "node_modules")
|
|
]
|
|
},
|
|
output: {
|
|
filename: "bundle.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
libraryTarget: "amd-require"
|
|
},
|
|
plugins: [
|
|
new CopyPlugin(
|
|
Assets.map(asset => {
|
|
return {
|
|
from: path.resolve(__dirname, `./node_modules/${asset}`),
|
|
to: path.resolve(__dirname, "./dist/libraries")
|
|
};
|
|
})
|
|
)
|
|
]
|
|
};
|