// For instructions about this file refer to // webpack and webpack-hot-middleware documentation import { Configuration } from "webpack"; import { root } from "./helpers"; export default ( config: Configuration ) => { delete config["WEBPACK_BUILD"]; delete config["WEBPACK_BUNDLE"]; delete config["WEBPACK_SERVE"]; config.name = "Sitefinity"; config.mode = "development"; config.entry = { "sitefinity-webservices-sdk": root("sitefinity-webservices-sdk") }; config.output = { path: root("dist"), filename: "[name].js", chunkFilename: "[name].js", libraryTarget: "umd", library: "Sitefinity", globalObject: "this" }; config.resolve = { extensions: [".ts", ".js", ".json", ".html"] }; config.module = { rules: [ { test: /\.ts$/, use: ["ts-loader"] } ] }; return config; };