Skip to content

Commit 5531f70

Browse files
author
Paulo Rezende
committed
Add stats option and optimizes paths on devServer
1 parent c518c19 commit 5531f70

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack/webpack.dev.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
22
const merge = require('webpack-merge');
3+
const path = require('path');
34

45
const common = require('./webpack.common');
56

@@ -15,10 +16,11 @@ module.exports = merge(common, {
1516
]
1617
},
1718
devServer: {
18-
contentBase: './build',
19-
publicPath: '/public/',
19+
contentBase: path.resolve('build'),
20+
publicPath: '/public',
2021
open: true,
21-
port: 8080
22+
port: 8080,
23+
stats: 'minimal'
2224
},
2325
plugins: [
2426
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)