Package Exports
- hook-shell-script-webpack-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hook-shell-script-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Shell Script Webpack Plugin 
This is a webpack plugin for running arbitrary shell scripts when webpack compiler hooks are triggered.
Installation
Install the plugin with npm:
$ npm install --save-dev hook-shell-script-webpack-plugin
$ yarn add --dev hook-shell-script-webpack-pluginUsage
// webpack.config.js
const webpack = require('webpack');
const HookShellScriptPlugin = require('hook-shell-script-webpack-plugin');
module.exports = {
// ...
plugins: [
new HookShellScriptPlugin({
afterEmit: ['npx tsc --emitDeclarationOnly']
// ...
})
]
};Thanks
Big thanks to webpack-hook-plugin for the inspiration.
License
The MIT License
Copyright ©️ 2020 Drew Loomer, https://drewloomer.com