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

HTML loader #381

Closed
clayrisser opened this issue Aug 28, 2017 · 3 comments
Closed

HTML loader #381

clayrisser opened this issue Aug 28, 2017 · 3 comments

Comments

@clayrisser
Copy link
Contributor

It would be nice if this supported an html loader

@clayrisser
Copy link
Contributor Author

I just created a pull request for this at #382

@reviewher
Copy link

@jamrizzi the documentation covers the HTML loader: https://github.com/insin/nwb/blob/master/docs/Configuration.md#extra-object

module.exports = {
  type: 'react-app',
  /* webpack.extra is the escape hatch*/
  webpack: { extra: {

      /* standard mantra for html loader */
      module: {
        rules: [
          {test: /\.html$/, loader: 'html-loader'}
        ]
      }

  } }
};

@clayrisser
Copy link
Contributor Author

Thanks

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

No branches or pull requests

2 participants