You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
405 B
JavaScript

"use strict";
const defaultValue = require("default-value");
module.exports = function createSimpleBundlePreset({source, destinationFolder, destinationFilename, publicPath} = {}) {
return {
entry: {
main: [
defaultValue(source, "./src/index.js")
]
},
output: {
publicPath: publicPath,
path: destinationFolder,
filename: defaultValue(destinationFilename, "bundle.js")
}
}
};