Skip to content

Commit 0454eb9

Browse files
committed
Add prettify command
1 parent c57595d commit 0454eb9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js",
1010
"build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
11-
"lint": "eslint . src config || true"
11+
"lint": "eslint . src config || true",
12+
"prettify": "prettier --write 'src/**/*.js'"
1213
},
1314
"keywords": [
1415
"webpack",

src/js/example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export const example = () => `Sensible webpack 5 boilerplate using Babel and PostCSS with a hot dev server
1+
export const example =
2+
() => `Sensible webpack 5 boilerplate using Babel and PostCSS with a hot dev server
23
and an optimized production build.`

0 commit comments

Comments
 (0)