1.0.0 • Published 2 years ago

script-runner-webpack-plugin v1.0.0

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

npm version dependencies Status devDependencies Status

script-runner-webpack-plugin

Simple script runner plugin for webpack - support watching source files

Usage

const ScriptRunnerPlugin = require('script-runner-webpack-plugin').default;

module.exports = {
    plugins: [
        new ScriptRunnerPlugin({
            sources: [path.join(__dirname, "..", "schema", "*.json")],
            script: "npm run build:schema"
        })
    ]
}

Option

sources?: string[]

sources glob patterns.

webpack will watching matched files.

script: string

script to run.

1.0.0

2 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago