opened
PeachScript
username_0
Hello, I got an error `fullTemplatePath` when I passing loader query parameters like the following code:

```js
new HtmlWebpackPlugin({
  filename: 'index.html',
  template: '!!html!swig?raw=true!./src/tmpl/index.html'
```

Then I got an error `fullTemplatePath`:
```
!!html!/Absolute/path/to/context/swig?raw=true!./src/tmpl/index.swig
```

So the `Child compilation` certainly failed, I read the source code and debug it, I think this problem caused by regexp in the `getFullTemplatePath` function, because the current regexp no deal with loader query parameters, it will match the `swig` substring and resolve it as a file path, is that right?
Template path resolving error if passing loader query parameters
issue
created
PeachScript
username_0
I created a pull request to fix it, please review it.

And this PR has been tested locally against Node.js v4, v5, v6, v7, but I don't know why the `travis-ci` failed...
comment
closed
PeachScript
username_0
issue
created
PeachScript
username_0
PR has been merged, close this issue now.
comment