title: fs.writeFile not working in newly created vue project
body: <p>I have created a new Vue project using vue cli. Now when i added File write code in main.js, its giving error.</p>
  <p>Code:</p>
  <pre><code>const fs = require('fs') ;
    
  // Data which will write in a file. 
  let data = &quot;Learning how to write in a file.&quot;;
    
  // Write data in 'Output.txt' . 
  fs.writeFile('Output.txt', data, (err) =&gt; { 
        
      // In case of a error throw err. 
      if (err) throw err; 
  }) ;
  </code></pre>
  <p>Error:
  Uncaught TypeError: fs.writeFile is not a function
  at eval (main.js?56d7:20)
  at Module../src/main.js (app.js:1217)
  at <strong>webpack_require</strong> (app.js:854)
  at fn (app.js:151)
  at Object.1 (app.js:1278)
  at <strong>webpack_require</strong> (app.js:854)
  at checkDeferredModules (app.js:46)
  at app.js:994
  at app.js:997</p>