prettier config

master
Tudor Stanciu 2020-04-10 01:42:32 +03:00
parent 167db9f371
commit 01cc5ddf7c
2 changed files with 12 additions and 9 deletions

3
.prettierrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"trailingComma": "none"
}

View File

@ -12,7 +12,7 @@ module.exports = {
output: { output: {
path: path.resolve(__dirname, "build"), path: path.resolve(__dirname, "build"),
publicPath: "/", publicPath: "/",
filename: "bundle.js", filename: "bundle.js"
}, },
devServer: { devServer: {
stats: "minimal", stats: "minimal",
@ -20,25 +20,25 @@ module.exports = {
historyApiFallback: true, historyApiFallback: true,
disableHostCheck: true, disableHostCheck: true,
headers: { "Access-Control-Allow-Origin": "*" }, headers: { "Access-Control-Allow-Origin": "*" },
https: false, https: false
}, },
plugins: [ plugins: [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: "src/index.html", template: "src/index.html",
favicon: "src/favicon.ico", favicon: "src/favicon.ico"
}), })
], ],
module: { module: {
rules: [ rules: [
{ {
test: /\.(js|jsx)$/, test: /\.(js|jsx)$/,
exclude: /node_modules/, exclude: /node_modules/,
use: ["babel-loader"], use: ["babel-loader"]
}, },
{ {
test: /(\.css)$/, test: /(\.css)$/,
use: ["style-loader", "css-loader"], use: ["style-loader", "css-loader"]
}, }
], ]
}, }
}; };