prettier config
parent
167db9f371
commit
01cc5ddf7c
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
|
@ -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"]
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue