Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Embedded Genesys UI
Commits
877e4fbb
Commit
877e4fbb
authored
Dec 08, 2020
by
Matija Obreza
Browse files
Lodash: @genesys-ui/client does not depend on entire lodash anymore
parent
60497b26
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
877e4fbb
...
...
@@ -11,7 +11,6 @@ The demo at https://genesys-pgr.p.gitlab.croptrust.org/ui-embedded/ displays dat
Add Javascript dependencies to your page:
```
html
<script
src=
"https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.0.0/dist/genesys-deps.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@genesys-pgr/ui-embedded@1.0.0/dist/genesys-ui.js"
></script>
<!-- Optionally use bootstrap CSS -->
...
...
config/webpack-library.js
View file @
877e4fbb
...
...
@@ -20,15 +20,6 @@ module.exports = {
// globalObject: '',
},
externals
:
{
lodash
:
{
commonjs
:
'
lodash
'
,
commonjs2
:
'
lodash
'
,
amd
:
'
lodash
'
,
root
:
'
_
'
,
},
},
resolve
:
{
extensions
:
[
'
.ts
'
,
'
.tsx
'
,
'
.js
'
,
'
.jsx
'
],
modules
:
[
path
.
resolve
(
'
./src
'
),
'
node_modules
'
],
...
...
index.html
View file @
877e4fbb
...
...
@@ -6,7 +6,6 @@
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"
/>
<meta
name=
"author"
content=
"Genesys Team, helpdesk@genesys-pgr.org"
/>
<script
src=
"https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js"
></script>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity=
"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin=
"anonymous"
/>
</head>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment