Skip to content

Commit 2f1a667

Browse files
peteruithovenskipjack
authored andcommitted
docs(guides): fix path in output-managment guide (#1346)
Solves the following error: `configuration.output.path: The provided value "dist" is not an absolute path!`. Now it also uses the same output path as the "Getting started" > "Using a Configuration" guide.
1 parent 63cc51c commit 2f1a667

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/guides/output-management.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ In comes the [`HtmlWebpackPlugin`](/plugins/html-webpack-plugin) to save the day
3737
__webpack.config.js__
3838

3939
``` js
40+
var path = require('path');
4041
var HtmlWebpackPlugin = require('html-webpack-plugin');
4142

4243
module.exports = {
@@ -46,7 +47,7 @@ module.exports = {
4647
},
4748

4849
output: {
49-
path: 'dist',
50+
path: path.resolve(__dirname, 'dist'),
5051
filename: '[name].bundle.js'
5152
},
5253

0 commit comments

Comments
 (0)