mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
31 lines
638 B
JavaScript
31 lines
638 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
resolve: {
|
|
extensions: [".js"]
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ["style-loader", "css-loader"]
|
|
},
|
|
{
|
|
test: /\.png$/i,
|
|
use: "url-loader?limit=100000"
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /(node_modules|bower_components)/,
|
|
use: "babel-loader" // 'babel-loader' is also a legal name to reference
|
|
}
|
|
],
|
|
noParse: [/jszip\.js$/]
|
|
},
|
|
entry: ["./js/index.js"],
|
|
output: {
|
|
filename: "winamp.js",
|
|
publicPath: "/built/",
|
|
path: path.resolve(__dirname, "built")
|
|
}
|
|
};
|