npm.io
1.0.5 • Published 7 years ago

@stellar-apps/webpack-rimraf-plugin

Licence
MIT
Version
1.0.5
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
3

@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()
  ]
}