title: Vue CLI | vue.config.js, how to place assets in root dist?
body: <p>Normally, Vue CLI with <code>vue.config.js</code> places the <code>.js</code> and <code>.css</code> assets in <code>/dist/[css|js]/</code>. However, I want the <code>.js</code> and <code>.css</code> files in the root <code>dist</code> folder.</p>
  
  <p>I can get the <code>.js</code> file in the root folder with the following config:</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = {
    productionSourceMap: false,
    filenameHashing: false,
    configureWebpack: {
      optimization: {
        splitChunks: false
      }
    },
    chainWebpack: config =&gt; {
      config.externals({
        ...config.get("externals"),
        moment: "moment"
      });
  
      config.output.filename("[name].js");
    }
  };
  </code></pre>
  
  <p>How do I do this with the <code>.css</code> file?</p>