From 0134a982a989722712dd067f824c4a0042043dd5 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 1 Nov 2019 13:10:41 +0100 Subject: style: add prettier on webpack build --- webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'webpack.config.js') 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, + }) + ], } }; -- cgit v1.2.3