jellyfish-web/webpack.common.js

25 lines
578 B
JavaScript
Raw Normal View History

2019-10-01 02:58:05 +03:00
const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
2019-10-01 02:58:05 +03:00
context: path.resolve(__dirname, "src"),
entry: "./bundle.js",
resolve: {
modules: [
2019-10-01 02:58:05 +03:00
path.resolve(__dirname, "node_modules")
]
2019-05-25 00:28:06 -04:00
},
2019-10-01 02:58:05 +03:00
plugins: [
new CopyPlugin([
{
from: "**/*",
to: "."
},
{
context: path.resolve(__dirname),
from: "node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
}
])
2019-10-01 02:58:05 +03:00
]
};