Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants