Skip to content
This repository was archived by the owner on Aug 20, 2018. It is now read-only.

docs(README): revert to webpack =< v1.0.0 usage instructions #42

Closed
nbkhope opened this issue Feb 2, 2017 · 0 comments
Closed

docs(README): revert to webpack =< v1.0.0 usage instructions #42

nbkhope opened this issue Feb 2, 2017 · 0 comments

Comments

@nbkhope
Copy link

nbkhope commented Feb 2, 2017

I am using Webpack version 1 and had to use the plugin to load a json file.

For some reason I was not getting anything to work until reading this Stack Overflow answer, which had different configuration (essentially different key names in the object).

Please add a warning or at least say in the README that those are instructions for Webpack 2. It would also be nice to have installation instructions for webpack v1 (if they are not already here somewhere?).

Webpack v2 config (shown in README):

module: {
  rules: [
    {
      test: /\.json$/,
      use: 'json-loader'
    }
  ]
}

Webpack v1 config (not mentioned anywhere in the README)

module: {
  loaders: [
    {
      test: /\.json$/,
      loader: 'json-loader'
    }
  ]
}

in v1, not rules, but loaders; not use, but loader

@michael-ciniawsky michael-ciniawsky self-assigned this Mar 13, 2017
@michael-ciniawsky michael-ciniawsky changed the title README Documentation only shows instructions for Webpack v2 docs(README): revert to webpack =< v1.0.0 usage instructions Jul 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants