webamp/webpack.config.js
Jordan Eldredge ea69bfcfb2 Preload skin
2017-09-26 19:52:55 -07:00

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")
}
};