New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@areyes-studio/webpack-compilation-modifier-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@areyes-studio/webpack-compilation-modifier-plugin

Webpack plugin that enhances the compilation process by adding a custom prefix and suffix to it

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Webpack Compilation Modifier Plugin

A simple and flexible plugin that enhances the webpack compilation process by adding a custom prefix and suffix to it.

Installation

npm i @areyes-studio/webpack-compilation-modifier-plugin

Usage

In your project's webpack.config.js file, add the following under the plugins key in config:

const WebpackCompilationModifierPlugin = require('@areyes-studio/webpack-compilation-modifier-plugin')

module.exports = {
// ...
plugins: [
    new WebpackCompilationModifierPlugin(
    'script.js',
    '/* \n' 
        + 'Copyright AREYES ENTERTAINMENT INC. All Rights Reserved.'
        
        + '\n */ \n\n',
    '\n' + '/* © AREYES ENTERTAINMENT INC. ' + (new Date()).getFullYear() + ' */'
    )
]
};

Options

The constructor for the plugin takes three parameters:

fileName (string): The file name that the prefix and suffix should be added to.
prefix (string): The text to add before the compiled code.
suffix (string): The text to add after the compiled code.

License

This project is licensed under the MIT license.

FAQs

Package last updated on 09 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc