Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
We shall able to see some of the library packages like clipboard using webpack concepts in odoo12.

Folder path: addons/web/static/lib/clipboard/clipboard.js. [Used WEBPACK to bundle js files]

Actual question how it works? Any idea!!

How to create the library Js files in odoo for the required modules to bundle the Js files using webpack?

(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["ClipboardJS"] = factory();
else
root["ClipboardJS"] = factory();
})


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 24
1280
0
srp 22
2096
1
kvě 22
9188
7
pro 24
6913
2
dub 24
1816