๐Ÿ“ฆ mutdmour / albert-ext

Alfred for your browser

โ˜… 2 stars โ‘‚ 0 forks ๐Ÿ‘ 2 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/mutdmour/albert-ext.git
HTTPS git clone https://github.com/mutdmour/albert-ext.git
SSH git clone git@github.com:mutdmour/albert-ext.git
CLI gh repo clone mutdmour/albert-ext
Mutasem Mutasem setup stuff 7894b65 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ jsconfig.json
๐Ÿ“„ LICENSE
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ TODO.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ webpack.mix.js
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

Chrome extension boilerplate Vue

Build a Chrome extension with Vue.js and Webpack (via Laravel mix)

Compiling project files

# install dependencies
npm install

# compile javascript files
npm run dev

You'll get a dist folder which is the actual extension.

Watching for changes

When developing the extension, We need a way to compile .vue and ES6 JavaScript files immediately with hot reloading and without any interference from us. Therefore, we're using Laravel mix (don't get fooled by the name. It has nothing to do with PHP) which is built on top of Webpack module bundler and has a much more simple config file syntax. To watch for changes, run this command:

npm run watch

Loading the extension to Chrome

Open Google Chrome browser and visit the URL: chrome://extensions. Activate developer mode and click on Load unpacked. Select the newly generated dist folder.

The extension should be loaded and working perfectly.