feat: filesMapping option to CSSResourcePlugin (#1281)
feat: filesMapping option to CSSResourcePlugin (#1281)

* Adding filesMapping option to CSSResourcePlugin

This option allow developer to create a manifest of generated resources files. Needed when loading CSS Resources from Javascript.
This fork manages watch loops to allow filesMapping function to create typescript or javascript files in homeDir folder.
filesMapping can also create a JSON file loaded at runtime for example.

This option allow developer to create a manifest of generated resources files. Needed when loading CSS Resources from Javascript.
This fork manages watch loops to allow filesMapping function to create typescript or javascript files in homeDir folder.
filesMapping can also create a JSON file loaded at runtime for example.

Usage :
```
CSSResourcePlugin({

	dist: "resources/",

	// Called when a new set of resources is copied to the resources/ folder
	filesMapping: (files) =>
	{
		// Log copied files
		files.map( fileMapping =>
		{
			console.log(fileMapping.from, "has been copied to", fileMapping.to)
		});
	}
})
```

* Optimizing CSSResourcePlugin filesMapping option

* Reverting

* Optimized CSSResourcesPlugin

Replaced copiedFiles checking as an id with something simpler, an invalidating boolean.

rs3d/fuse-box,rs3d/fuse-box,rs3d/fuse-box,fuse-box/fuse-box,fuse-box/fuse-box,fuse-box/fuse-box,fuse-box/fuse-box