This repository has been archived on 2024-05-09. You can view files and clone it, but cannot push or open issues or pull requests.
icytv/webpack.config.js

30 lines
540 B
JavaScript

const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
entry: {
main: './src/index.js',
player: './src/player.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].bundle.js'
},
module: {
rules: []
},
plugins: [
new CopyPlugin({
patterns: [{
from: '*',
to: 'css',
context: 'src/css/'
},
{
from: 'node_modules/bootstrap/dist/css/bootstrap.min.css',
to: 'css'
}]
})
]
}