title: How to integrate php code in a vuejs project for production building?
body: <p>Using CLI to generate a project with</p>
  
  <pre><code>vue create project
  </code></pre>
  
  <p>How can i integrate php code in .Vue files and not break the building command :</p>
  
  <pre><code>npm run build
  </code></pre>
  
  <p>As an example i want to add <code>&lt;?php ?&gt;</code> code inside the famous Home.vue view like so :</p>
  
  <pre><code>&lt;template&gt;
    &lt;div class="home"&gt;
      &lt;img alt="Vue logo" src="../assets/logo.png"&gt;
      &lt;HelloWorld msg="Welcome to Your Vue.js App"/&gt;
      &lt;?php echo("this break the building"); ?&gt;
  
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  // @ is an alias to /src
  import HelloWorld from "@/components/HelloWorld.php";
  
  export default {
    name: "home",
    components: {
      HelloWorld
    }
  };
  &lt;/script&gt;
  
  </code></pre>
  
  <p>Changing Home.vue to Home.php dont solve the problem.</p>