mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
53 lines
1 KiB
JavaScript
53 lines
1 KiB
JavaScript
const path = require("path");
|
|
const webpack = require("webpack");
|
|
|
|
module.exports = {
|
|
devtool: "source-map",
|
|
resolve: {
|
|
extensions: [".js"]
|
|
},
|
|
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$/]
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
SENTRY_DSN: JSON.stringify(
|
|
"https://c8c64ef822f54240901bc64f88c234d8@sentry.io/146022"
|
|
)
|
|
})
|
|
],
|
|
entry: {
|
|
winamp: ["./js/index.js"],
|
|
skinExplorer: "./js/skinExplorer.js"
|
|
},
|
|
output: {
|
|
filename: "[name].js",
|
|
publicPath: "/built/",
|
|
path: path.resolve(__dirname, "built")
|
|
}
|
|
};
|