Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DX #171

Open
1 of 3 tasks
andywer opened this issue Jul 2, 2017 · 2 comments
Open
1 of 3 tasks

Improve DX #171

andywer opened this issue Jul 2, 2017 · 2 comments

Comments

@andywer
Copy link
Owner

andywer commented Jul 2, 2017

Improve the experience of using webpack-blocks as shared by @zcei: see comment

@zcei
Copy link
Collaborator

zcei commented Jul 3, 2017

Hej, I thought it might be cool to provide the actual configuration output of each block in its README, like this for babel:

Result

{
  module: {
    rules: [{
      test: context.match.test, // /\.(js|jsx)$/
      exclude: context.match.exclude, // /node_modules/
      use: [{
        loader: 'babel-loader',
        options: {
          cacheDirectory: options.cacheDirectory // true
        }
      }]
    }]
  }
}

I think this would make it easier to grasp when coming from a "pure" webpack background. What do you think?

(I would volunteer running each block once and adjusting the output to the style above & filing a PR)

@andywer
Copy link
Owner Author

andywer commented Jul 3, 2017

Good idea! I am just not sure whether to provide the test: context.match.test stuff or the actual output for some example input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants