🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

component-webpack-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-webpack-plugin

Use components with webpack

0.2.1
latest
Version published
Weekly downloads
15
-65.91%
Maintainers
1
Weekly downloads
 
Created

component for webpack

Usage

see an example here: webpack/webpack/examples/component

var ComponentPlugin = require("component-webpack-plugin");
module.exports = {
	plugins: [
		new ComponentPlugin();
	]
}

Advanced usage

var ComponentPlugin = require("component-webpack-plugin");
module.exports = {
	plugins: [
		new ComponentPlugin({
			// Load xyz field in component.json
			xyz: true,
			// This is equal to: xyz: "[file]"
			
			// Load xyz field with the xyz-loader
			xyz: "!xyz-loader![file]",
			
			// This is default:
			// styles: "!style-loader!css-loader![file]"
		}, [
			// Lookup paths
			"component"
		]);
	]
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Package last updated on 17 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts