Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
fc9e6624
Verified
Commit
fc9e6624
authored
Apr 06, 2018
by
Chocobozzz
Browse files
Upgrade to webpack 4
parent
6e0c85bd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
client/package.json
View file @
fc9e6624
...
...
@@ -48,14 +48,14 @@
"@types/video.js"
:
"6.2.4"
,
"@types/webtorrent"
:
"^0.98.4"
,
"angular2-notifications"
:
"^0.9.6"
,
"awesome-typescript-loader"
:
"
3.4
.1"
,
"awesome-typescript-loader"
:
"
4.0
.1"
,
"bootstrap-sass"
:
"^3.3.7"
,
"codelyzer"
:
"^4.0.2"
,
"core-js"
:
"^2.4.1"
,
"css-loader"
:
"^0.28.4"
,
"extract-text-webpack-plugin"
:
"
^3
.0.
2
"
,
"extract-text-webpack-plugin"
:
"
4
.0.
0-beta.0
"
,
"file-loader"
:
"^1.1.5"
,
"html-webpack-plugin"
:
"^
2.19
.0"
,
"html-webpack-plugin"
:
"^
3.2
.0"
,
"linkifyjs"
:
"^2.1.5"
,
"lodash-es"
:
"^4.17.4"
,
"markdown-it"
:
"^8.4.0"
,
...
...
@@ -81,8 +81,9 @@
"video.js"
:
"^6.7.3"
,
"videojs-dock"
:
"^2.0.2"
,
"videojs-hotkeys"
:
"^0.2.21"
,
"webpack"
:
"^
3.3
.0"
,
"webpack"
:
"^
4.5
.0"
,
"webpack-bundle-analyzer"
:
"^2.9.1"
,
"webpack-cli"
:
"^2.0.14"
,
"webtorrent"
:
"^0.98.0"
,
"zone.js"
:
"~0.8.5"
}
...
...
client/webpack/webpack.video-embed.js
View file @
fc9e6624
...
...
@@ -99,7 +99,7 @@ module.exports = function () {
plugins
:
[
new
ExtractTextPlugin
({
filename
:
'
[name].[
content
hash].css
'
filename
:
'
[name].[hash].css
'
}),
new
PurifyCSSPlugin
({
...
...
@@ -135,6 +135,11 @@ module.exports = function () {
})
],
performance
:
{
maxEntrypointSize
:
600000
,
// 600kB
maxAssetSize
:
600000
},
node
:
{
global
:
true
,
crypto
:
'
empty
'
,
...
...
client/yarn.lock
View file @
fc9e6624
This diff is collapsed.
Click to expand it.
scripts/build/client.sh
View file @
fc9e6624
...
...
@@ -7,4 +7,4 @@ cd client
rm
-rf
./dist ./compiled
npm run ng build
--
--prod
--stats-json
NODE_ENV
=
production npm run webpack
--
--config
webpack/webpack.video-embed.js
NODE_ENV
=
production npm run webpack
--
--config
webpack/webpack.video-embed.js
--mode
production
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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