GithubHelp home page GithubHelp logo

theoephraim / vue-chrome-extension-template Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 2.54 MB

Example setup of a chrome extension built with vue - with a nice dev env (linting, reloading, etc)

JavaScript 70.78% Vue 13.99% CSS 15.22%
chrome-extension vue webpack reloading template

vue-chrome-extension-template's Introduction

Vue Chrome Extension Template

A nice starter kit for building Chrome extensions using vue with

  • wepack, vue, pug, less
  • automatic lint+fix on save
  • live reloading enabled via webpack-extension-reloader
  • helpers for dealing with intra-extension messaging
  • helpers for some other chrome APIs

This does not have an example of every chrome extension feature, but it does cover most common features.

Developing locally

(after forking/copying the repo and running npm install)

run npm run dev

  • go to chrome://extensions
  • enable "developer mode"
  • click "Load unpacked" and select the dist folder of this project

Live reloading will mostly handle things for you, but if you change the manifest, env vars, or webpack config, you will need to stop and restart npm run dev.

Also some specific errors may require going back to chrome://extensions and re-loading the plugin.

Happy hacking!

Building for production

run npm run build

Configuration

Configuration is stored in config/env.js and exposed in process.env via webpack.DefinePlugin. Defaults are loaded first and then overrides depending on the env being built for.

Optionally, you can create a config/local.js file (not checked into git) with overrides to be loaded only during local development.

vue-chrome-extension-template's People

Contributors

theoephraim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.