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

31 lines
559 B
JavaScript
Raw Normal View History

const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
2018-08-06 13:16:24 +00:00
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([
{
from: 'src/css/*.css',
to: 'css',
flatten: true
2018-08-06 13:16:24 +00:00
},
{
from: 'node_modules/bootstrap/dist/css/bootstrap.min.css',
to: 'css',
flatten: true
}
]),
],
}