4.2.0 • Published 2 years ago

source-replacement-webpack-plugin v4.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Source Replacement Webpack Plugin

semantic-release JavaScript Style Guide ts code style: prettier License: MIT

Webpack Plugin to bundle source-replacement script to your app.

Beware yourself, don't use this in production build

Installation

yarn add --dev source-replacement-webpack-plugin

Usage

In your webpack config

const { SourceReplacementPlugin } = require('source-replacement-webpack-plugin')

module.exports = {
    ...
    plugins: [
        ...,
        new SourceReplacementPlugin()
    ]
}

custom entry name

const { SourceReplacementPlugin } = require('source-replacement-webpack-plugin')

module.exports = {
    ...
    plugins: [
        ...,
        new SourceReplacementPlugin('main') // default is 'client'
    ]
}

On your browser

Enter page with the following example

https://example.com/#replacementTarget=https://your-target-js-source-url
4.1.0

2 years ago

4.0.0

2 years ago

4.1.2

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

3.0.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago