aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2019-11-05 17:11:15 +0100
committerGitHub <noreply@github.com>2019-11-05 17:11:15 +0100
commit1f7e99de2d67feca9569cc3a04213cea94e0137d (patch)
treea33959163a4b4c09d3de159a56e9dd3c4a735d57 /webpack.config.js
parent44e54592f146319dec6f7dd6481a7cb420cd56e9 (diff)
parent0134a982a989722712dd067f824c4a0042043dd5 (diff)
downloadwcms-1f7e99de2d67feca9569cc3a04213cea94e0137d.tar.gz
wcms-1f7e99de2d67feca9569cc3a04213cea94e0137d.zip
Merge pull request #24 from n-peugnet/add-prettier-on-build
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,
+ })
+ ],
}
};