Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

webpack-contrib/component-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Use components with webpack - UNMAINTAINED

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published