Skip to content

Commit

Permalink
chore(dependencies): update to latest versions
Browse files Browse the repository at this point in the history
* chore(npm): soft update dependencies

* chore(composer): soft update dependencies

* chore(npm): hard update webpack-copy-plugin to v6

* chore(npm): hard update build process dependencies

* chore(npm): hard update frontend dependencies

* fix(css-loader): adjust config
to get rid of warning
  • Loading branch information
domtra authored Aug 12, 2020
1 parent 3321873 commit 42c5b08
Show file tree
Hide file tree
Showing 6 changed files with 12,737 additions and 12,095 deletions.
10 changes: 5 additions & 5 deletions Components/SliderImages/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery'
import Swiper from 'swiper'
import 'swiper/css/swiper.min.css'
import Swiper from 'swiper/bundle'
import 'swiper/swiper-bundle.css'

class SliderImages extends window.HTMLDivElement {
constructor (...args) {
Expand Down Expand Up @@ -37,8 +37,8 @@ class SliderImages extends window.HTMLDivElement {
const { options } = this.props
const config = {
navigation: {
nextEl: this.$buttonNext,
prevEl: this.$buttonPrev
nextEl: this.$buttonNext.get(0),
prevEl: this.$buttonPrev.get(0)
},
a11y: options.a11y
}
Expand All @@ -47,7 +47,7 @@ class SliderImages extends window.HTMLDivElement {
delay: options.autoplaySpeed
}
}
this.slider = new Swiper(this.$slider, config)
this.slider = new Swiper(this.$slider.get(0), config)
}
}

Expand Down
28 changes: 16 additions & 12 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ function getCopyConfig (source) {
return {
from: source,
to: './',
ignore: [
'*.js',
'*.scss',
'*.php',
'*.twig',
'screenshot.png',
'README.md'
]
globOptions: {
ignore: [
'**/*.js',
'**/*.scss',
'**/*.php',
'**/*.twig',
'**/screenshot.png',
'**/README.md'
]
}
}
}

Expand All @@ -22,10 +24,12 @@ module.exports = {
'assets/main': './assets/main.js',
'assets/admin': './assets/admin.js'
},
copy: [
getCopyConfig('./Components/**/*'),
getCopyConfig('./assets/**/*')
]
copy: {
patterns: [
getCopyConfig('./Components/**/*'),
getCopyConfig('./assets/**/*')
]
}
},
browserSync: {
ghostMode: false,
Expand Down
152 changes: 112 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 42c5b08

Please sign in to comment.