jellyfin-web/webpack.config.js

45 lines
865 B
JavaScript
Raw Normal View History

const path = require('path');
2019-05-24 21:28:06 -07:00
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
2019-05-24 21:28:06 -07:00
context: path.resolve(__dirname, 'src'),
entry: './bundle.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'amd'
},
externals: [{
jquery: {
amd: "jQuery"
}
}],
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']
}
]
2019-05-24 21:28:06 -07:00
},
plugins: [
new CopyPlugin([{
from: '**/*',
to: '.'
}])
]
};