From 10393abff6a98355f86c888fa404c6927878e589 Mon Sep 17 00:00:00 2001 From: Ivan Vashchenko Date: Thu, 6 Apr 2017 20:51:37 -0400 Subject: Update webpack config to version 2 Update config to satisfy webpack 2 configuration object schema --- README.md | 6 +++--- 1 file 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'] } } ``` -- cgit v1.2.3