Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3988 มุมมอง
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();
})


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 24
1278
0
ส.ค. 22
2095
1
พ.ค. 22
9184
Website 'noindex' tag Blocking Indexing แก้ไขแล้ว
7
ธ.ค. 24
6906
2
เม.ย. 24
1808