mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
b1d1cee634
The fork contains an asm.js compatibility patch that we need for older client. This commit switched to using our forked version while we wait for an upstream merge.
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
const path = require("path");
|
|
|
|
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
const CopyPlugin = require("copy-webpack-plugin");
|
|
|
|
const Assets = [
|
|
"alameda/alameda.js",
|
|
"native-promise-only/npo.js",
|
|
"libass-wasm/dist/subtitles-octopus-worker.js",
|
|
"libass-wasm/dist/subtitles-octopus-worker.data",
|
|
"libass-wasm/dist/subtitles-octopus-worker.wasm",
|
|
"libass-wasm/dist/subtitles-octopus-worker-legacy.js",
|
|
"libass-wasm/dist/subtitles-octopus-worker-legacy.data",
|
|
"libass-wasm/dist/subtitles-octopus-worker-legacy.js.mem"
|
|
];
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, "src"),
|
|
entry: "./bundle.js",
|
|
resolve: {
|
|
modules: [
|
|
path.resolve(__dirname, "node_modules")
|
|
]
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(),
|
|
new CopyPlugin([{
|
|
from: "**/*",
|
|
to: "."
|
|
}]),
|
|
new CopyPlugin(
|
|
Assets.map(asset => {
|
|
return {
|
|
from: path.resolve(__dirname, `./node_modules/${asset}`),
|
|
to: path.resolve(__dirname, "./dist/libraries")
|
|
};
|
|
})
|
|
)
|
|
]
|
|
};
|