title: npm error:A valid query string passed to parseQuery should begin with '?'
body: <p>Once I run <code>npm run build</code>in my vue2 project,an error explained that<code>loaderUtils.getOptions is not a function</code>.</p>
  
  <p>After I <code>cnpm install vue-loader vue-template-compiler loader-utils</code> ,the following error occurred： </p>
  
  <pre><code>    ERROR in   Error: Child compilation failed:
        Module build failed: Error: A valid query string passed to parseQuery should b  egin with '?'
  
        - parseQuery.js:13 Object.parseQuery
          [cg.test]/[_loader-utils@1.1.0@loader-utils]/lib/parseQuery.js:13:9
  
  
        - Error: A valid query string passed to parseQuery should begin with '?'
  
        - compiler.js:76
          [cg.test]/[html-webpack-plugin]/lib/compiler.js:76:16
  
        - Compiler.js:296 Compiler.&lt;anonymous&gt;
          [cg.test]/[webpack]/lib/Compiler.js:296:10
  
        - Compiler.js:499
          [cg.test]/[webpack]/lib/Compiler.js:499:13
  
        - Tapable.js:202 next
          [cg.test]/[tapable]/lib/Tapable.js:202:11
  
        - CachePlugin.js:62 Compiler.&lt;anonymous&gt;
          [cg.test]/[webpack]/lib/CachePlugin.js:62:5
  
        …… ……    
  
  &gt; ERROR in ./src/main.js
  &gt;     Module build failed: Error: A valid query string passed to parseQuery should begin with '?'
  &gt;         at Object.parseQuery (D:\***\node_modules\_loader-utils@1.1.0@loader-utils\lib\parseQuery.js:13:9)
  &gt;         at Object.module.exports (D:***\node_modules\_babel-loader@6.4.1@babel-loader\lib\index.js:104:35)
  &gt;     
  &gt;  Build complete.
  &gt;     
  &gt;   Tip: built files are meant to be served over an HTTP server.
  &gt;   Opening index.html over file:// won't work.
  </code></pre>
  
  <p>I used to update the version of the <code>babel-loader</code>，<code>vue-cli</code>,<code>vue-loader</code>, <code>vue-template-compiler</code>,<code>loader-utils</code>,<code>webpack</code>or<code>npm install</code>,but none of them work.Does anybody know the problem?</p>