1.1.0 • Published 10 months ago

@infomaximum/json-modify-webpack-plugin v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Installation

yarn add @infomaximum/json-modify-webpack-plugin

Usage

const { JsonModifyWebpackPlugin } = require("./plugin");
const PackageJSON = require("./package.json");

const webpackConfig = {
    entry: [
        "./src/index.js",
        "./manifest.json"
    ],
    output: {
        path: path.resolve("build"),
        filename: packageFilename,
        clean: true,
    },
    plugins: [
        new JsonModifyWebpackPlugin({
            matchers: [
                {
                matcher: /^manifest.json$/,
                action: (currentJsonContent) => {
                    currentJsonContent.version = PackageJSON.version;

                    return currentJsonContent;
                },
                },
            ],
        }),
    ];
}
1.1.0

10 months ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago