@sellerspot/webpack-run-scripts-custom-plugin
v1.18.4
Published
Custom plugin for running scripts on successfull compilation and file emition
Downloads
25
Readme
Webpack Run Scripts Custom Plugin
To install
npm i -D @sellerspot/webpack-run-scripts-custom-plugin
usage
plugins: [
new WebpackCustomRunScriptsPlugin({
command: '<- your command ->',
allowOnException?: boolean;
allownOnError?: boolean;
})
];Note: use
nodemon --signal SIGHUPwhen you are passing nodemon as the command.
Development flow
npm run dev
To build
npm run bulid
Linting
npm run lint|npm run lint:fix
package build and deploy flow
- build locally using
npm run build - link locally with npm
npm link- this will add the package to local npm repositoy - use the
npm install <directory-output-from-above-command-output>in any project and do checks - if everything ok, do
npm version <version-type> -m <changes-log-message-string>=> note:- version-type will be one of thesemajor | minor | patch - then run
npm publish --access publicnote:- this needs authentication - should be the dev team member in npm.
