26 lines
609 B
JavaScript
26 lines
609 B
JavaScript
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" }
|
|
]
|
|
}
|
|
};
|