mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
48 lines
893 B
JavaScript
48 lines
893 B
JavaScript
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
const path = require("path");
|
|
|
|
module.exports = {
|
|
resolve: {
|
|
extensions: [".js"]
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ["style-loader", "css-loader"]
|
|
},
|
|
{
|
|
test: /\.png$/i,
|
|
use: {
|
|
loader: "url-loader",
|
|
options: {
|
|
limit: 100000
|
|
}
|
|
}
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /(node_modules)/,
|
|
use: {
|
|
loader: "babel-loader"
|
|
}
|
|
}
|
|
],
|
|
noParse: [/jszip\.js$/]
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: "./index.ejs",
|
|
assetBase: ""
|
|
})
|
|
],
|
|
entry: {
|
|
winamp: ["./js/index.js"]
|
|
//skinExplorer: "./js/skinExplorer.js"
|
|
},
|
|
output: {
|
|
filename: "[name].js",
|
|
publicPath: "/",
|
|
path: path.resolve(__dirname, "built")
|
|
}
|
|
};
|