Skip to content

Commit

Permalink
README.md updated path property in output (#697)
Browse files Browse the repository at this point in the history
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'
  }
  • Loading branch information
yogeswarant authored and jantimon committed Jun 7, 2017
1 parent efd1f78 commit 2751ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [new HtmlWebpackPlugin()]
Expand Down Expand Up @@ -104,7 +104,7 @@ Here's an example webpack config illustrating how to use these options:
{
entry: 'index.js',
output: {
path: 'dist',
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
Expand All @@ -131,7 +131,7 @@ once in your plugins array:
{
entry: 'index.js',
output: {
path: 'dist',
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
Expand Down

0 comments on commit 2751ade

Please sign in to comment.