forked from matrix/element-web
Add webpack stats which will be used by CI and stored to artifacts
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ffd155a6aa
commit
0620da4351
|
@ -21,3 +21,4 @@ electron/pub
|
||||||
/config.local*.json
|
/config.local*.json
|
||||||
/src/component-index.js
|
/src/component-index.js
|
||||||
/.tmp
|
/.tmp
|
||||||
|
/webpack-stats.json
|
||||||
|
|
|
@ -37,11 +37,13 @@
|
||||||
"reskindex:watch-react": "node scripts/yarn-sub.js matrix-react-sdk reskindex:watch",
|
"reskindex:watch-react": "node scripts/yarn-sub.js matrix-react-sdk reskindex:watch",
|
||||||
"clean": "rimraf lib webapp electron_app/dist",
|
"clean": "rimraf lib webapp electron_app/dist",
|
||||||
"build": "yarn clean && yarn build:genfiles && yarn build:compile && yarn build:types && yarn build:bundle",
|
"build": "yarn clean && yarn build:genfiles && yarn build:compile && yarn build:types && yarn build:bundle",
|
||||||
|
"build-stats": "yarn clean && yarn build:genfiles && yarn build:compile && yarn build:types && yarn build:bundle-stats",
|
||||||
"build:res": "node scripts/copy-res.js",
|
"build:res": "node scripts/copy-res.js",
|
||||||
"build:genfiles": "yarn reskindex && yarn build:res",
|
"build:genfiles": "yarn reskindex && yarn build:res",
|
||||||
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
|
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
|
||||||
"build:compile": "babel -d lib --verbose --extensions \".ts,.js,.tsx\" src",
|
"build:compile": "babel -d lib --verbose --extensions \".ts,.js,.tsx\" src",
|
||||||
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail --mode production",
|
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail --mode production",
|
||||||
|
"build:bundle-stats": "cross-env NODE_ENV=production webpack -p --progress --bail --mode production --json > webpack-stats.json",
|
||||||
"build:electron": "yarn build && yarn install:electron && electron-builder -wml --ia32 --x64",
|
"build:electron": "yarn build && yarn install:electron && electron-builder -wml --ia32 --x64",
|
||||||
"build:electron:linux": "yarn build && electron-builder -l --x64",
|
"build:electron:linux": "yarn build && electron-builder -l --x64",
|
||||||
"build:electron:macos": "yarn build && electron-builder -m --x64",
|
"build:electron:macos": "yarn build && electron-builder -m --x64",
|
||||||
|
|
|
@ -93,6 +93,9 @@ module.exports = (env, argv) => {
|
||||||
|
|
||||||
// same goes for js-sdk - we don't need two copies.
|
// same goes for js-sdk - we don't need two copies.
|
||||||
"matrix-js-sdk": path.resolve(__dirname, 'node_modules/matrix-js-sdk'),
|
"matrix-js-sdk": path.resolve(__dirname, 'node_modules/matrix-js-sdk'),
|
||||||
|
// and prop-types and sanitize-html
|
||||||
|
"prop-types": path.resolve(__dirname, 'node_modules/prop-types'),
|
||||||
|
"sanitize-html": path.resolve(__dirname, 'node_modules/sanitize-html'),
|
||||||
|
|
||||||
// Define a variable so the i18n stuff can load
|
// Define a variable so the i18n stuff can load
|
||||||
"$webapp": path.resolve(__dirname, 'webapp'),
|
"$webapp": path.resolve(__dirname, 'webapp'),
|
||||||
|
|
Loading…
Reference in New Issue