aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-01 13:10:41 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-01 13:10:41 +0100
commit0134a982a989722712dd067f824c4a0042043dd5 (patch)
tree39240b86c8c7127ff104f7b7308fa21f1a3ffd43 /webpack.config.js
parentb17bba314c84f3ee012901476417821c3c34d54a (diff)
downloadwcms-0134a982a989722712dd067f824c4a0042043dd5.tar.gz
wcms-0134a982a989722712dd067f824c4a0042043dd5.zip
style: add prettier on webpack build
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 734b3cd..c0286df 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,4 +1,5 @@
const path = require('path');
+const PrettierPlugin = require('prettier-webpack-plugin');
module.exports = (env) => {
return {
@@ -27,5 +28,12 @@ module.exports = (env) => {
},
],
},
+ plugins: [
+ new PrettierPlugin({
+ tabWidth: 4,
+ trailingComma: 'es5',
+ singleQuote: true,
+ })
+ ],
}
};