Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

This plugin allows you to run a shell command when a specfic file was changed at the end of the build process.

Notifications You must be signed in to change notification settings

PeterShershov/webpack-noodle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

npm version

Webpack Noodle Plugin

This plugin allows you to run a shell command when a specfic file was changed at the end of the build process.

Installation

yarn add webpack-noodle-plugin -D

or

npm i webpack-noodle-plugin -D

Development

Go to webpack.config.js:

const webpackNoodlePlugin = require('webpack-noodle-plugin');

"plugins": [
    new webpackNoodlePlugin({
      filename: '<FILE-NAME>',
      command: '<SHELL-COMMAND>'
    })]

Options

  • filename: string: The name of the file to be watched. Example: myfile.ts.
  • filename can also be partial, like: .spec.ts.
  • command: The shell command that will run once this file was changed. Example: yarn process

About

This plugin allows you to run a shell command when a specfic file was changed at the end of the build process.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published