script-runner-webpack-plugin
v1.0.0
Published
Simple script runner plugin for webpack - support watching source files
Downloads
10
Readme
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.
