Skip to content

Webpack plugin to enable reloading while developing Chrome extensions.

Notifications You must be signed in to change notification settings

pb-yuri-zaporozhets/wcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Chrome Extension Reloader npm version

Webpack Chrome Extension Reloade images

  • Creates a manifest.json
  • Reload only the chunk not all files.
  • Restarts the chrome extension if has changed manifest.js, content_scripts.js, background.scripts
  • background, content_scripts, devtools, options, popup, tab

Installation

npm install wcer --save-dev
// or
yarn add wcer --dev

Usage

Add wcer to the plugins section of your webpack configuration file.

const path  = require('path');
const ChromeReloadPlugin  = require('wcer');

module.exports = {
//...
    plugins: [
      new ChromeReloadPlugin({
        port: 9090, //optional, default: 9090
        manifest: path.join(__dirname, '..', 'src', 'manifest.js')
      })
    ] 
//...
}

Example

About

Webpack plugin to enable reloading while developing Chrome extensions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published