Git Product home page Git Product logo

parcel-webextension-plugins's Introduction

Parcel v2 Webextension Plugins

This repository holds plugins for the development of webextensions using Parcel v2.

Parcel v2 has included support for webextensions. However, we need extra steps for resolving the manifest.json. Currently this provides functionality where the manifest.json is merged with manifest.{NODE_ENV}.json before building.

For more information about manifest.json, please refer to the MDN docs.

Installation

Install via npm:

npm install --save-dev @mgranderath/parcel-config-webextension

or via yarn:

yarn add -D @mgranderath/parcel-config-webextension

Usage

This wraps the default webextension config and extends it by using a different resolver for the manifest.json.

You can bundle webextensions by setting the .parcelrc to this:

{
  "extends": "@mgranderath/parcel-config-webextension"
}

and running a build by targeting the manifest.json:

parcel build manifest.json

Environments

This plugin will try to resolve and merge environment-specific manifest files in the format manifest.${NODE_ENV}.json. For example, in development, you can run:

NODE_ENV=development parcel build src/manifest.json

and the plugin will also look for manifest.development.json and merge those keys into the base manifest.

parcel-webextension-plugins's People

Contributors

github-actions[bot] avatar mgranderath 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.