title: How to Make Webpack Produce a JS file as-is to Use it Later for Configuration
body: <p>I have a custom config JS file used to specify the REST API entry points, I need that file available in <code>dist</code> folder after <code>npm run build:prod</code> without bundling/minimization so I can edit it later in production</p>
  <p>I tried</p>
  <pre><code>{
          test: /\.(js|jsx)$/,
          exclude: [
            /\bcore-js\b/,
            /\bwebpack\/buildin\b/,
            /apicalls.js$/
          ],
  }
  </code></pre>
  <p>But it totally excluded it from the bundle</p>
  <p>How can I achieve this ?</p>
  <p>apicalls.js</p>
  <pre><code> const APIURL= &quot;https://localhost:12500/api/&quot;;
  export default {
  
      // get all criteria in DB
      getAllCriterias: APIURL + &quot;Criteria/getAll&quot;,
      
      //get current website user
      user: APIURL + &quot;UserIdentity/user&quot;,
  }
  </code></pre>