mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add webpack copy plugin
This commit is contained in:
parent
61de82e7fe
commit
5734d5d07d
3 changed files with 139 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
|||
const path = require('path');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
context: __dirname + '/src',
|
||||
context: path.resolve(__dirname, 'src'),
|
||||
entry: './bundle.js',
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
|
@ -42,5 +43,12 @@ module.exports = {
|
|||
use: ['file-loader']
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new CopyPlugin([{
|
||||
from: '**/*',
|
||||
to: '.'
|
||||
}])
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue