1.19.5 • Published 4 years ago

gulp-ui5-eager-preload v1.19.5

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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"]
})
1.19.5

4 years ago

1.19.4

4 years ago

1.19.3

4 years ago

1.19.2

4 years ago

1.19.1

4 years ago

1.19.0

4 years ago

1.18.3

4 years ago

1.18.2

5 years ago

1.18.1

5 years ago

1.18.0

5 years ago

1.17.3

5 years ago

1.17.2

5 years ago

1.17.1

5 years ago

1.17.0

5 years ago

1.16.0

5 years ago

1.15.1

5 years ago

1.15.0

5 years ago

1.14.1

5 years ago

1.14.0

5 years ago

1.13.3

5 years ago

1.13.2

5 years ago

1.13.1

5 years ago

1.13.0

5 years ago

1.12.20

5 years ago

1.12.19

5 years ago

1.12.18

5 years ago

1.12.17

5 years ago

1.12.16

5 years ago

1.12.15

5 years ago

1.12.14

5 years ago

1.12.13

5 years ago

1.12.12

5 years ago

1.12.11

5 years ago

1.12.10

5 years ago

1.12.9

5 years ago

1.12.8

5 years ago

1.12.7

5 years ago

1.12.6

5 years ago

1.12.5

5 years ago

1.12.4

5 years ago

1.12.3

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.8

5 years ago

1.11.7

5 years ago

1.11.6

5 years ago

1.11.5

5 years ago

1.11.4

5 years ago

1.11.3

5 years ago

1.11.2

5 years ago

1.11.1

5 years ago

1.11.0

5 years ago

1.10.2

5 years ago

1.10.1

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago