Skip to content

Webpack plugin to replace string pattern and filter src files by regex

License

Notifications You must be signed in to change notification settings

aamirshahx/replace-string-pattern-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

replace-string-pattern-webpack-plugin

##Arguments filePattern: RegExp

pattern: RegExp

replacement: Func|String


Example

var ReplaceStringPatternPlugin = require('replace-string-pattern-webpack-plugin');

plugins: [
	new ReplaceStringPatternPlugin({
        filePattern: new RegExp('pattern', 'g'),		// pattern to filter files
        pattern: /pattern-to-replace/g,				    // pattern to replace
        replacement: 'replacement'			            // content to replace above pattern
    })
]

About

Webpack plugin to replace string pattern and filter src files by regex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published