Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 628 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 628 Bytes

xo-webpack-plugin

XO plugin for webpack.

Install

$ npm i xo-webpack-plugin --save-dev

Usage

In your webpack configuration

const XoPlugin = require('xo-webpack-plugin');

// ...

const plugins = [
	// ...
]

const options = {
	// ...
}

module.exports = (env, argv) => {
	// Example condition to only run on watch
	if (argv.watch === true) {
		options.plugins.push(new XoPlugin({
			// XO Options: https://github.com/sindresorhus/xo#config)
		}));
	}
	return options
}

That's it!