-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(FEC-13175): Upgrade Webpack deps and fix source-maps #211
base: master
Are you sure you want to change the base?
Conversation
} | ||
}; | ||
const webpackConfig = require('./webpack.config')('development', {mode: 'development'}); | ||
delete webpackConfig.entry; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ?
@@ -0,0 +1,5 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need a separate package.json for each ?
const webpack = require('webpack'); | ||
const path = require('path'); | ||
const packageData = require('./package.json'); | ||
const TerserPlugin = require('terser-webpack-plugin'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does terser provide ?
logLevel: config.LOG_INFO, | ||
autoWatch: false, | ||
browsers: ['ChromeHeadless'], | ||
singleRun: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does test:watch still work when singleRun is true in the config file ?
"build": "webpack --mode production", | ||
"dev": "webpack-dev-server --mode development", | ||
"watch": "webpack --progress --colors --watch --mode development", | ||
"build:dev": "webpack serve --open --mode=development", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't the devops script count on a "build" task existing ?
Description of the Changes
The updated Babel configuration for the webpage aims to remove support for Internet Explorer (IE), reduce the bundle size, and improve code quality. The changes can be described as follows:
The benefits of this updated configuration are:
By updating the Babel configuration in this way, you not only remove IE support and reduce bundle size but also ensure code reliability and enhance code quality by adhering to strict ECMAScript standards. This helps optimize the performance of your webpage while promoting maintainable and reliable code.
Bundle size effects:
Before:
playkit-ott-provider.js 31.3 KiB
playkit-ovp-provider.js 47.7 KiB
playkit-analytics-service.js 10.5 KiB
playkit-bookmark-service.js 9.17 KiB
playkit-stats-service.js 9.82 KiB
After:
asset playkit-ovp-provider.js 35.7 KiB
asset playkit-ott-provider.js 22.2 KiB
asset playkit-analytics-service.js 7.81 KiB
asset playkit-stats-service.js 7.16 KiB
asset playkit-bookmark-service.js 6.76 KiB
solves FEC-13175
CheckLists