diff options
author | n-peugnet <n.peugnet@free.fr> | 2019-11-01 13:10:41 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2019-11-01 13:10:41 +0100 |
commit | 0134a982a989722712dd067f824c4a0042043dd5 (patch) | |
tree | 39240b86c8c7127ff104f7b7308fa21f1a3ffd43 /webpack.config.js | |
parent | b17bba314c84f3ee012901476417821c3c34d54a (diff) | |
download | wcms-0134a982a989722712dd067f824c4a0042043dd5.tar.gz wcms-0134a982a989722712dd067f824c4a0042043dd5.zip |
style: add prettier on webpack build
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 8 |
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, + }) + ], } }; |