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

Require html with raw-loader by default #10

Closed
jhnns opened this issue Jul 9, 2012 · 4 comments
Closed

Require html with raw-loader by default #10

jhnns opened this issue Jul 9, 2012 · 4 comments

Comments

@jhnns
Copy link
Member

jhnns commented Jul 9, 2012

I think it would be nice to just require an html file without having to use the raw-loader.

What do you think?

@sokra
Copy link
Member

sokra commented Jul 9, 2012

You can fit the defaults to your needs:

resolve: {
  loaders: [
    { test: /\.html$/, loader: "raw" }
  ]
}

I don't think the raw loader generally fits best for loading .html (but it may do in your case). A loader for html which deserves the default status whould do html-specific minimizing.

@sokra sokra closed this as completed Jul 9, 2012
@jhnns
Copy link
Member Author

jhnns commented Jul 9, 2012

Ok that seems reasonable. Thanks.

@jhnns
Copy link
Member Author

jhnns commented Jul 10, 2012

Works a like a charm! :)

@sokra
Copy link
Member

sokra commented Jul 10, 2012

:)

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

2 participants