clean-webpack-plugin

v4.0.0
A webpack plugin to remove/clean your build folder(s).
webpack plugin clean node

clean

del-cli --dot=true "./dist/**/*"

build

npm run clean && npm run build.compile && npm run build.types

build.compile

cross-env NODE_ENV=production babel src -d dist --verbose --extensions .ts --ignore */**/*.d.ts,**/**/*.test.ts --source-maps

build.types

cross-env NODE_ENV=production tsc --project tsconfig.types.json

dev

npm run clean && cross-env NODE_ENV=development babel -w src -d dist --verbose --extensions .ts --ignore */**/*.d.ts,**/**/*.test.ts --source-maps

lint

eslint --ext .js,.ts .

lint.fix

eslint --ext .js,.ts --fix .

format

prettier "**/*.{js,mjs,jsx,ts,tsx,json,scss,less,css,md,yml,yaml}" --write

test

jest

test.update

jest --update-snapshot

test.watch

jest --watch

test.all

node ./dev-utils/test-supported-webpack-versions.js

test.ci

npm run build && npm run lint && npm run typescript && npm run test.all -- --ci

typescript

tsc

git-pre-commit

lint-staged

git-pre-push

npm run lint && npm run typescript && npm run test.all

prepublishOnly

npm run build && npm run lint && npm run typescript && npm run test.all

release

np
npm i clean-webpack-plugin

Metadata

  • MIT
  • >=10.0.0
  • John Agan
  • released 9/1/2021

Downloads

Maintainers