Skip to content

Commit 2751ade

Browse files
yogeswarantjantimon
authored andcommitted
README.md updated path property in output (#697)
In 2.6.1, output: { path: 'dist', filename: 'app.bundle.js' } give the below error. The provided value "dist" is not an absolute path! So made, path: output: { path: __dirname + '/dist', filename: 'index_bundle.js' }
1 parent efd1f78 commit 2751ade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
5050
var webpackConfig = {
5151
entry: 'index.js',
5252
output: {
53-
path: 'dist',
53+
path: __dirname + '/dist',
5454
filename: 'index_bundle.js'
5555
},
5656
plugins: [new HtmlWebpackPlugin()]
@@ -104,7 +104,7 @@ Here's an example webpack config illustrating how to use these options:
104104
{
105105
entry: 'index.js',
106106
output: {
107-
path: 'dist',
107+
path: __dirname + '/dist',
108108
filename: 'index_bundle.js'
109109
},
110110
plugins: [
@@ -131,7 +131,7 @@ once in your plugins array:
131131
{
132132
entry: 'index.js',
133133
output: {
134-
path: 'dist',
134+
path: __dirname + '/dist',
135135
filename: 'index_bundle.js'
136136
},
137137
plugins: [

0 commit comments

Comments
 (0)