audioshowkit/webpack.config.js
Harrison Deng ec6ce48988 Preparing library for export.
Reconfigured webpack.

Removed unused packages.

Added library exports (webpack configured to export IIFE).

Created showcase directory.
2022-04-17 17:44:52 -05:00

34 lines
771 B
JavaScript

import path from "path";
export default {
mode: "production",
entry: {
audioshowkit: path.resolve("./src/audioshowkitlib.js"),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"]
}
}
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
]
},
output: {
filename: "[name].js",
path: path.resolve("./dist"),
library: ["[name]"]
},
plugins: [
]
};