component-webpack-plugin
Use components with webpack
Last updated 7 years ago by sokra .
MIT · Original npm · Tarball · package.json
$ cnpm install component-webpack-plugin 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 0.2.1                                ...           latest (7 years ago)

6 Versions

  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 16
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |