mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
39 lines
773 B
JavaScript
39 lines
773 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ["style-loader", "css-loader"]
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /(node_modules)/,
|
|
use: {
|
|
loader: "babel-loader"
|
|
}
|
|
},
|
|
{
|
|
test: /\.(wsz|mp3)$/,
|
|
use: [
|
|
{
|
|
loader: "file-loader",
|
|
options: {
|
|
emitFile: true,
|
|
name: "[path][name]-[hash].[ext]"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
noParse: [/jszip\.js$/]
|
|
},
|
|
entry: ["babel-polyfill", "./js/winamp.js"],
|
|
output: {
|
|
path: path.resolve(__dirname, "built"),
|
|
filename: "winamp.bundle.js",
|
|
library: "winamp2js",
|
|
libraryTarget: "umd"
|
|
}
|
|
};
|