update webpack to 4.44.2 and copy-webpack-plugin to 6.4.1

This commit is contained in:
zeppi 2021-12-08 22:35:38 -05:00 committed by jessopb
parent ec14cc8828
commit d9afaadb27
4 changed files with 516 additions and 203 deletions

View file

@ -20,11 +20,6 @@
"to": "static/daemon/", "to": "static/daemon/",
"filter": ["**/*"] "filter": ["**/*"]
}, },
{
"from": "./static/lbry-first/",
"to": "static/lbry-first/",
"filter": ["**/*"]
},
{ {
"from": "./static/img", "from": "./static/img",
"to": "static/img", "to": "static/img",

View file

@ -106,7 +106,7 @@
"codemirror": "^5.39.2", "codemirror": "^5.39.2",
"concurrently": "^4.1.2", "concurrently": "^4.1.2",
"connected-react-router": "^6.8.0", "connected-react-router": "^6.8.0",
"copy-webpack-plugin": "^5.1.2", "copy-webpack-plugin": "^6.4.1",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"country-data": "^0.0.31", "country-data": "^0.0.31",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
@ -205,7 +205,7 @@
"stream-to-blob-url": "^2.1.1", "stream-to-blob-url": "^2.1.1",
"strip-markdown": "^3.0.3", "strip-markdown": "^3.0.3",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.2.3", "terser-webpack-plugin": "^4.2.3",
"three": "^0.125.0", "three": "^0.125.0",
"three-full": "^17.1.0", "three-full": "^17.1.0",
"tiny-relative-date": "^1.3.0", "tiny-relative-date": "^1.3.0",
@ -218,7 +218,7 @@
"videojs-event-tracking": "^1.0.1", "videojs-event-tracking": "^1.0.1",
"villain-react": "^1.0.9", "villain-react": "^1.0.9",
"wavesurfer.js": "^2.2.1", "wavesurfer.js": "^2.2.1",
"webpack": "^4.28.4", "webpack": "^4.44.2",
"webpack-bundle-analyzer": "^3.1.0", "webpack-bundle-analyzer": "^3.1.0",
"webpack-cli": "^3.3.10", "webpack-cli": "^3.3.10",
"webpack-config-utils": "^2.3.1", "webpack-config-utils": "^2.3.1",

View file

@ -42,11 +42,14 @@ let mainConfig = {
], ],
}, },
plugins: [ plugins: [
new CopyWebpackPlugin([ new CopyWebpackPlugin({
patterns: [
{ {
from: `${STATIC_ROOT}/`, from: `${STATIC_ROOT}/`,
to: `${DIST_ROOT}/electron/static/`, to: `${DIST_ROOT}/electron/static/`,
ignore: ['index-web.html', 'index-electron.html', 'daemon/**/*', 'lbry-first/**/*'], globOptions: {
ignore: ['index-web.html', 'index-electron.html', 'daemon/**/*'],
},
}, },
{ {
from: `${STATIC_ROOT}/index-electron.html`, from: `${STATIC_ROOT}/index-electron.html`,
@ -56,11 +59,8 @@ let mainConfig = {
from: `${STATIC_ROOT}/daemon`, from: `${STATIC_ROOT}/daemon`,
to: `${DIST_ROOT}/electron/daemon`, to: `${DIST_ROOT}/electron/daemon`,
}, },
{ ],
from: `${STATIC_ROOT}/lbry-first`, }),
to: `${DIST_ROOT}/electron/lbry-first`,
},
]),
], ],
}; };

670
yarn.lock

File diff suppressed because it is too large Load diff