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

26 lines
609 B
JavaScript
Raw Normal View History

2018-08-06 13:16:24 +00:00
const path = require('path');
module.exports = {
entry: {
main: './src/index.js',
player: './src/player.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].bundle.js'
},
module: {
rules: [
{
test: /\.css$/,
use: [
{ loader: "style-loader/useable" },
{ loader: "css-loader" }
]
},
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&mimetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
]
}
};