1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add webpack-dev-server

This commit is contained in:
grafixeyehero 2019-09-30 23:51:46 +03:00
parent e7610b0e4a
commit 716ac36031
4 changed files with 45 additions and 18 deletions

View file

@ -1,35 +0,0 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
context: path.resolve(__dirname, 'src'),
entry: './bundle.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'amd-require'
},
resolve: {
modules: [
path.resolve(__dirname, 'node_modules')
]
},
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
},
{
test: /\.(png|jpg|gif)$/i,
use: ['file-loader']
}
]
},
plugins: [
new CopyPlugin([{
from: '**/*',
to: '.'
}])
]
};