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();
})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
3974
Visualizzazioni
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
0
set 24
|
1275 | ||
|
0
ago 22
|
2093 | ||
|
1
mag 22
|
9179 | ||
|
7
dic 24
|
6905 | ||
|
2
apr 24
|
1807 |