gulp-ui5-eager-preload
[![npm version](https://badge.fury.io/js/gulp-ui5-eager-preload.svg)](https://www.npmjs.com/package/gulp-ui5-eager-preload)
Last updated 12 days ago by suntao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-ui5-eager-preload 
SYNC missed versions from official npm registry.

gulp ui5 eager preload plugin

npm version

Please use this module by The ultimate generator for UI5

features

  • preload standard modules (with uglify, only preload used modules).
  • allow manually maintain resources & module.
  • generate index.html, inline library.css avoid xhr block request.
  • local file & url based cache.
  • enable use thirdparty library from node_modules

in standard openui5 workthrough demo

  • totally downloaded file size will reduce %50 or more (depends on the usage rate for single standard library).
  • first screen time dropped from 1500ms to 300ms (with cache).
  • reduce the number of requests.

sample configuration


eagerPreload({
  // Current Project Title
  title: "UI5 Project",
  // theme
  theme: "sap_belize",
  // standard library resource root
  ui5ResourceRoot: "https://openui5.hana.ondemand.com/resources",
  // enable preload logic
  preload: true,
  // offline mode, will not load resource from ui5 resource root directly
  offline: true,
  sourceDir: join(__dirname, "./src"),
  // thirdparty library output library
  thirdpartyLibPath: "_thirdparty",
  // project namespace
  projectNameSpace: namespace,
  // additionalResources
  additionalResources: [
    "sap/m/messagebundle_zh_CN.properties",
    "sap/ui/core/messagebundle_zh_CN.properties"
  ],
  // boot script
  bootScriptPath: "./index.js",
  // additionalModules 
  // sometimes ui5 will dynamic load resource
  // just use devtools find them and add them to here
  additionalModules: ["sap/m/routing/Router", "sap/ui/thirdparty/datajs"]
})

Current Tags

  • 1.18.1                                ...           latest (12 days ago)

53 Versions

  • 1.18.1                                ...           12 days ago
  • 1.18.0                                ...           12 days ago
  • 1.17.3                                ...           12 days ago
  • 1.17.2                                ...           12 days ago
  • 1.17.0                                ...           13 days ago
  • 1.16.0                                ...           14 days ago
  • 1.15.1                                ...           a month ago
  • 1.15.0                                ...           a month ago
  • 1.14.1                                ...           a month ago
  • 1.14.0                                ...           a month ago
  • 1.13.3                                ...           2 months ago
  • 1.13.2                                ...           2 months ago
  • 1.13.1                                ...           2 months ago
  • 1.13.0                                ...           2 months ago
  • 1.12.20                                ...           3 months ago
  • 1.12.19                                ...           4 months ago
  • 1.12.18                                ...           4 months ago
  • 1.12.17                                ...           5 months ago
  • 1.12.16                                ...           5 months ago
  • 1.12.15                                ...           5 months ago
  • 1.12.14                                ...           5 months ago
  • 1.12.13                                ...           5 months ago
  • 1.12.12                                ...           5 months ago
  • 1.12.11                                ...           5 months ago
  • 1.12.10                                ...           5 months ago
  • 1.12.9                                ...           5 months ago
  • 1.12.8                                ...           5 months ago
  • 1.12.7                                ...           5 months ago
  • 1.12.6                                ...           5 months ago
  • 1.12.5                                ...           5 months ago
  • 1.12.4                                ...           5 months ago
  • 1.12.3                                ...           5 months ago
  • 1.12.2                                ...           5 months ago
  • 1.12.1                                ...           5 months ago
  • 1.12.0                                ...           5 months ago
  • 1.11.8                                ...           5 months ago
  • 1.11.7                                ...           5 months ago
  • 1.11.6                                ...           5 months ago
  • 1.11.5                                ...           5 months ago
  • 1.11.4                                ...           5 months ago
  • 1.11.3                                ...           5 months ago
  • 1.11.2                                ...           5 months ago
  • 1.11.1                                ...           5 months ago
  • 1.11.0                                ...           5 months ago
  • 1.10.2                                ...           5 months ago
  • 1.10.1                                ...           5 months ago
  • 1.9.2                                ...           7 months ago
  • 1.9.1                                ...           8 months ago
  • 1.9.0                                ...           8 months ago
  • 1.8.1                                ...           8 months ago
  • 1.8.0                                ...           8 months ago
  • 1.7.1                                ...           9 months ago
  • 1.7.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 115
Last Day 0
Last Week 1
Last Month 104
Dependencies (22)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |