0.2.1 • Published 9 years ago

dolphin-asset-manager-module v0.2.1

Weekly downloads
52
License
-
Repository
github
Last release
9 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

9 years ago

0.2.0

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago