diff options
author | Ivan Vashchenko <srochno@gmail.com> | 2017-04-06 20:51:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-06 20:51:37 -0400 |
commit | 10393abff6a98355f86c888fa404c6927878e589 (patch) | |
tree | 39610722fda15d93544fde2855c80fd3ab4c86d4 | |
parent | 120ce8fc0ff39c566001b9d910e1320a40bc87b7 (diff) |
Update webpack config to version 2
Update config to satisfy webpack 2 configuration object schema
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'] } } ``` |