initial commit

This commit is contained in:
vorotamoroz
2021-10-12 23:50:13 +09:00
commit 7c5fa1e942
19 changed files with 15645 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
// Generated using webpack-cli https://github.com/webpack/webpack-cli
const path = require("path");
const isProduction = process.env.NODE_ENV == "production";
const config = {
entry: "./src/index.js",
output: {
filename: "pouchdb-browser.js",
path: path.resolve(__dirname, "dist"),
// library: "PouchDB",
// libraryTarget: "umd",
library: {
// name: "pouchdb_browser",
type: "module",
},
},
experiments: {
outputModule: true,
},
plugins: [],
module: {},
};
module.exports = () => {
if (isProduction) {
config.mode = "production";
} else {
config.mode = "development";
}
return config;
};