mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-29 06:00:29 -04:00
reduce webpack output on CI
This commit is contained in:
parent
a26ec04491
commit
324427226e
2 changed files with 8 additions and 2 deletions
|
@ -7,9 +7,9 @@
|
|||
"license": "BSD-3-Clause",
|
||||
"scripts": {
|
||||
"clean": "rimraf ./dist ./static/assets",
|
||||
"start": "mkdirp ./dist && electron-webpack dev --bail --display-error-details --env.minify=false",
|
||||
"start": "mkdirp ./dist && electron-webpack dev --bail --display-error-details --env.minify=false --no-progress",
|
||||
"postinstall": "npm run rebuild-deps",
|
||||
"compile": "mkdirp ./dist && electron-webpack --bail --display-error-details --env.minify=false",
|
||||
"compile": "mkdirp ./dist && electron-webpack --bail --display-error-details --env.minify=false --no-progress",
|
||||
"fetch": "rimraf ./static/assets/ && mkdirp ./static/assets/ && node ./scripts/fetchMediaLibraryAssets.js",
|
||||
"build": "npm run build:dev",
|
||||
"build:dev": "npm run compile && npm run doBuild -- --mode=dev",
|
||||
|
|
|
@ -120,6 +120,12 @@ const makeConfig = function (defaultConfig, options) {
|
|||
}
|
||||
});
|
||||
|
||||
// If we're not on CI, enable Webpack progress output
|
||||
// Note that electron-webpack enables this by default, so use '--no-progress' to avoid double-adding this plugin
|
||||
if (!process.env.CI) {
|
||||
config.plugins.push(new webpack.ProgressPlugin());
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
`dist/webpack.${options.name}.js`,
|
||||
`module.exports = ${util.inspect(config, {depth: null})};\n`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue