1
0
mirror of https://github.com/vrtmrz/obsidian-livesync.git synced 2025-12-08 23:11:52 +02:00

- Reverted PouchDB direct importing.

(I completely forgot why I webpacked.)
- Submodule re-init
This commit is contained in:
vorotamoroz
2022-04-30 01:11:17 +09:00
parent 9acf9fe093
commit 6f76f90075
13 changed files with 78 additions and 688 deletions

View File

@@ -0,0 +1,30 @@
// 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: {
type: "module",
},
},
experiments: {
outputModule: true,
},
plugins: [],
module: {},
};
module.exports = () => {
if (isProduction) {
config.mode = "production";
} else {
config.mode = "development";
}
return config;
};