mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 09:45:56 +00:00
initial commit
This commit is contained in:
1
pouchdb-browser-webpack/.gitignore
vendored
Normal file
1
pouchdb-browser-webpack/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
2
pouchdb-browser-webpack/README.md
Normal file
2
pouchdb-browser-webpack/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# PouchDB-browser
|
||||
just webpacked.
|
||||
1
pouchdb-browser-webpack/dist/pouchdb-browser.js
vendored
Normal file
1
pouchdb-browser-webpack/dist/pouchdb-browser.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9820
pouchdb-browser-webpack/package-lock.json
generated
Normal file
9820
pouchdb-browser-webpack/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
24
pouchdb-browser-webpack/package.json
Normal file
24
pouchdb-browser-webpack/package.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "pouchdb-browser-webpack",
|
||||
"version": "1.0.0",
|
||||
"description": "pouchdb-browser webpack",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "webpack --mode=production --node-env=production",
|
||||
"build:dev": "webpack --mode=development",
|
||||
"build:prod": "webpack --mode=production --node-env=production",
|
||||
"watch": "webpack --watch"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"pouchdb-browser": "^7.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@webpack-cli/generators": "^2.4.0",
|
||||
"webpack": "^5.58.1",
|
||||
"webpack-cli": "^4.9.0"
|
||||
}
|
||||
}
|
||||
4
pouchdb-browser-webpack/src/index.js
Normal file
4
pouchdb-browser-webpack/src/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// This module just webpacks pouchdb-browser
|
||||
import * as PouchDB_src from "pouchdb-browser";
|
||||
const PouchDB = PouchDB_src.default;
|
||||
export { PouchDB };
|
||||
33
pouchdb-browser-webpack/webpack.config.js
Normal file
33
pouchdb-browser-webpack/webpack.config.js
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user