Use components with webpack - UNMAINTAINED
JavaScript
Switch branches/tags
Nothing to show
Latest commit dffe019 Feb 21, 2017 @d3viant0ne d3viant0ne committed on GitHub Merge pull request #10 from webpack-contrib/d3viant0ne-JSFLicense
chore(license): update to JSF license format

README.md

component for webpack

UNMAINTAINED!

Usage

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)