summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Vashchenko <srochno@gmail.com>2017-04-06 20:51:37 -0400
committerGitHub <noreply@github.com>2017-04-06 20:51:37 -0400
commit10393abff6a98355f86c888fa404c6927878e589 (patch)
tree39610722fda15d93544fde2855c80fd3ab4c86d4
parent120ce8fc0ff39c566001b9d910e1320a40bc87b7 (diff)
Update webpack config to version 2
Update config to satisfy webpack 2 configuration object schema
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1293b8b..41d9b3c 100644
--- a/README.md
+++ b/README.md
@@ -279,7 +279,7 @@ And now configure webpack to use the loader.
module.exports = {
entry: './src/static/index.js',
output: {
- path: './dist',
+ path: '__dirname'+'/dist',
filename: 'bundle.js'
},
module: {
@@ -287,12 +287,12 @@ module.exports = {
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
- loader: 'elm-webpack?verbose=true&warn=true',
+ loader: 'elm-webpack-loader?verbose=true&warn=true',
}
]
},
resolve: {
- extensions: ['', '.js', '.elm']
+ extensions: ['.js', '.elm']
}
}
```