Harrison Deng
ec6ce48988
Reconfigured webpack. Removed unused packages. Added library exports (webpack configured to export IIFE). Created showcase directory.
34 lines
771 B
JavaScript
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: [
|
|
|
|
]
|
|
}; |