Skip to content

Commit

Permalink
Travis opt in to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Feb 21, 2020
1 parent 881313d commit 8114648
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ before_deploy:
- ssh-add deploy_rsa
deploy:
provider: script
cleanup: false
script:
rsync -r -e "ssh -o StrictHostKeyChecking=no" --delete-after --quiet ./dist/
script: rsync -r -e "ssh -o StrictHostKeyChecking=no" --delete-after --quiet ./dist/
${SSH_USER}@${SSH_HOST}:/var/www/leopard-chat
edge: true
124 changes: 108 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"prettier": "^1.19.1",
"prettier-eslint": "^9.0.1",
"prettier-stylelint": "^0.4.2",
"progress-bar-webpack-plugin": "^2.1.0",
"release-it": "^12.6.0",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
Expand Down
10 changes: 10 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require("path");
const fs = require("fs");
const chalk = require("chalk");
const ProgressBarPlugin = require("progress-bar-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin");
const BrotliPlugin = require("brotli-webpack-plugin");
const WebpackDeletePlugin = require("webpack-delete-plugin");
Expand Down Expand Up @@ -161,6 +163,14 @@ if (!stopCompression && (enableJavaScriptCompression || enableCssCompression)) {
}

if (!dev) {
buildConfig.configureWebpack.plugins.push(
new ProgressBarPlugin({
format: ` build [${chalk.greenBright(":bar")}] ${chalk.magentaBright.bold(
":percent"
)} (:elapsed seconds)`,
clear: false
})
);
console.log(`Using TerserPlugin`);
buildConfig.configureWebpack.plugins.push(
new TerserPlugin({
Expand Down

0 comments on commit 8114648

Please sign in to comment.