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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3199
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 24
|
198 | ||
|
0
Aug 22
|
1148 | ||
|
1
May 22
|
7822 | ||
|
6
Jul 24
|
4401 | ||
|
2
Apr 24
|
392 |