0.2.1 • Published 8 years ago

dolphin-asset-manager-module v0.2.1

Weekly downloads
52
License
-
Repository
github
Last release
8 years ago

Installation

npm install dolphin-asset-manager-package --save

AssetManagerConfigurationFactory

The factory has default methods:

methods:

  • addPromise - the plugin will wait for your resolve then will execute own logic
  • addVendorStyle - adding css content to vendor bundle
  • addVendorScript - adding js content to vendor bundle
  • addCustomStyles - adding css content to custom bundle
  • addCustomScript - adding js content to custom bundle
  • addAssetFolder - coping all assets

All files will copy and merge on 4 files:

  • vendor-hash.js
  • vendor-hash.css
  • custom-hash.js
  • custom-hash.css

and move to public folder in root project. Also will build a json file bundle.result.json for express to include js and css.

Example

myModule.configureFactories(function (AssetManagerConfigurationFactory) {

    AssetManagerConfigurationFactory.addVendorStyle('path to file or mask like ./*.css');
    
    AssetManagerConfigurationFactory.addVendorScript('path to file or mask like ./*.js');
    
    AssetManagerConfigurationFactory.addCustomStyles('path to file or mask like ./*.css');
    
    AssetManagerConfigurationFactory.addCustomScript('path to file or mask like ./*.js');
    
    AssetManagerConfigurationFactory.addAssetFolder('path to file or mask like ./*');
});
0.2.1

8 years ago

0.2.0

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 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

0.0.4

8 years ago

0.0.3

8 years ago