@stellar-apps/webpack-rimraf-plugin

1.0.5 • Public • Published

@stellar-apps/webpack-rimraf-plugin

Does one thing and one thing only - rimraf's the output.path defined in your Webpack configuration. There are no, options, nothing special to know. I just didn't want to have to define the output path in multiple locations. Simple as that.

Installation

yarn add @stellar-apps/webpack-rimraf-plugin

Usage

const path = require('path')
const WebpackRimrafPlugin = require('@stellar-apps/webpack-rimraf-plugin')

module.exports = {
  output: {
    // this will get nuked before Webpack assets emit
    path: path.resolve(__dirname, 'dist/server')
  },
  plugins: [
    new WebpackRimrafPlugin()
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @stellar-apps/webpack-rimraf-plugin

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

3.18 kB

Total Files

9

Last publish

Collaborators

  • jaredlunde
  • relytmcd