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

nstanard/XO-Webpack-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published