https://github.com/redxtech/obsidiclip
An obsidian web clipper that actually works!
https://github.com/redxtech/obsidiclip
Last synced: 3 months ago
JSON representation
An obsidian web clipper that actually works!
- Host: GitHub
- URL: https://github.com/redxtech/obsidiclip
- Owner: redxtech
- Created: 2024-06-08T23:07:42.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-09T00:52:27.000Z (about 2 years ago)
- Last Synced: 2025-02-19T13:46:50.233Z (over 1 year ago)
- Language: Vue
- Size: 218 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# obsidiclip
This template should help get you started developing a vue web extension in Vite.
## Usage Notes
The extension manifest is defined in `src/manifest.js` and used by `@samrum/vite-plugin-web-extension` in the vite config.
Background, content scripts, options, and popup entry points exist in the `src/entries` directory.
Content scripts are rendered by `src/entries/contentScript/renderContent.js` which renders content within a ShadowRoot
and handles style injection for HMR and build modes.
Otherwise, the project functions just like a regular Vite project.
Refer to [@samrum/vite-plugin-web-extension](https://github.com/samrum/vite-plugin-web-extension) for more usage notes.
## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```
## Commands
### Build
#### Development, HMR
Hot Module Reloading is used to load changes inline without requiring extension rebuilds and extension/page reloads
Currently only works in Chromium based browsers.
```sh
npm run dev
```
#### Development, Watch
Rebuilds extension on file changes. Requires a reload of the extension (and page reload if using content scripts)
```sh
npm run watch
```
#### Production
Minifies and optimizes extension build
```sh
npm run build
```
### Load extension in browser
Loads the contents of the dist directory into the specified browser
```sh
npm run serve:chrome
```
```sh
npm run serve:firefox
```