Skip to content

Commit

Permalink
update precommit hook to format
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgoli committed Jun 8, 2022
1 parent 2693098 commit ecddb8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
yarn format
16 changes: 7 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const path = require('path')
const TerserPlugin = require('terser-webpack-plugin')

const paths = {
source: path.resolve(__dirname, 'src'),
es5: path.resolve(__dirname, "dist", "es5"),
};
es5: path.resolve(__dirname, 'dist', 'es5'),
}

const commonConfig = {
output: {
Expand All @@ -30,11 +30,9 @@ const commonConfig = {
},
optimization: {
minimize: true,
minimizer: [
new TerserPlugin(),
]
}
};
minimizer: [new TerserPlugin()],
},
}

const rruleConfig = Object.assign(
{
Expand Down

0 comments on commit ecddb8c

Please sign in to comment.