<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="58632" data-post-id="58632">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="LostKobrakai" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/LostKobrakai/120/3072_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  LostKobrakai
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m always going with laravel-mix, which is contrary to it’s name not dependent on laravel, but rather just a opinionated wrapper around webpack. It’s coming with support for vue built in.</p>
<aside class="onebox githubgist" data-onebox-src="https://gist.github.com/LostKobrakai/b28c18bc369f421cdc19136f8252b412">
  <header class="source">

      <a href="https://gist.github.com/LostKobrakai/b28c18bc369f421cdc19136f8252b412" target="_blank" rel="noopener nofollow">gist.github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://gist.github.com/LostKobrakai/b28c18bc369f421cdc19136f8252b412" target="_blank" rel="noopener nofollow">https://gist.github.com/LostKobrakai/b28c18bc369f421cdc19136f8252b412</a></h4>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="58632" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/32">Post #31</a>
	                </div>
	            </div>
              <div id="likers-container-58632" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="58632"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #31"></div>
  </section>
</div>
    <div class="postbit" id="58791" data-post-id="58791">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Emily" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Emily/120/2422_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Emily
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Has anyone else had problems getting vue-brunch to build in Phoenix 1.3?</p>
<p>I was able to get it to work in 1.2, but after updating &amp; building another project Brunch doesn’t seem to be concatenating components in /assets/components to  /priv/static/css/components.css</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="58791" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/33">Post #32</a>
	                </div>
	            </div>
              <div id="likers-container-58791" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="58791"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #32"></div>
  </section>
</div>
    <div class="postbit" id="58792" data-post-id="58792">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wmnnd" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wmnnd/120/4985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wmnnd
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Could you share your config and your application structure? Are you getting any error messages?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="58792" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/34">Post #33</a>
	                </div>
	            </div>
              <div id="likers-container-58792" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="58792"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #33"></div>
  </section>
</div>
    <div class="postbit" id="58793" data-post-id="58793">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Emily" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Emily/120/2422_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Emily
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I didn’t change the file structure of the new project generator in Phoenix 1.3.</p>
<p>I added a folder for Vue components in assets &amp; created a test component: assets/components/my-app.vue.</p>
<p>I setup brunch-config.js like this:</p>
<pre><code>// Configure your plugins
  plugins: {
    babel: {
      // Do not use ES6 compiler in vendor code
      ignore: [/vendor/]
    },
    vue: {
      extractCSS: true,
      // out: '../public/styles/components.css'
      out: "/priv/static/css/components.css"
      
    }
  },
</code></pre>
<p>The JS from my-app.vue seems to be concatenating to app.js.  The css doesn’t seem to be concatenating to components.css.</p>
<p>I posted a question to <a href="http://Stackoverflow.com" rel="noopener nofollow ugc">Stackoverflow.com</a> with the specifics &amp; the brunch debug output here:</p>
<aside class="onebox stackexchange" data-onebox-src="https://stackoverflow.com/questions/47389473/brunch-not-compiling-css-for-vuejs-components-in-phoenix-1-3-project">
  <header class="source">

      <a href="https://stackoverflow.com/questions/47389473/brunch-not-compiling-css-for-vuejs-components-in-phoenix-1-3-project" target="_blank" rel="noopener nofollow ugc">stackoverflow.com</a>
  </header>

  <article class="onebox-body">
      <a href="https://stackoverflow.com/users/5565100/emily" target="_blank" rel="noopener nofollow ugc">
    <img alt="Emily" src="https://i.sstatic.net/h4XjH.jpg?s=256" class="thumbnail onebox-avatar" width="256" height="256">
  </a>

<h4>
  <a href="https://stackoverflow.com/questions/47389473/brunch-not-compiling-css-for-vuejs-components-in-phoenix-1-3-project" target="_blank" rel="noopener nofollow ugc">Brunch Not Compiling CSS For VueJS Components in Phoenix 1.3 Project?</a>
</h4>

<div class="tags">
  <strong>elixir, phoenix-framework, brunch</strong>
</div>

<div class="date">
  asked by
  
  <a href="https://stackoverflow.com/users/5565100/emily" target="_blank" rel="noopener nofollow ugc">
    Emily
  </a>
  on <a href="https://stackoverflow.com/questions/47389473/brunch-not-compiling-css-for-vuejs-components-in-phoenix-1-3-project" target="_blank" rel="noopener nofollow ugc">10:08AM - 20 Nov 17 UTC</a>
</div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="58793" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/35">Post #34</a>
	                </div>
	            </div>
              <div id="likers-container-58793" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="58793"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #34"></div>
  </section>
</div>
    <div class="postbit" id="76338" data-post-id="76338">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jstlroot" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstlroot/120/9945_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jstlroot
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hey there!</p>
<p>Has any of you succeeded in making Phoenix 1.3 work with Vue through Webpack?</p>
<p>I can’t seem to find any recent repo/tuto/blog that actually works for me. Emily, did you get there yet?</p>
<p>Any help is appreciated! =)<br>
Cheers!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="76338" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/36">Post #35</a>
	                </div>
	            </div>
              <div id="likers-container-76338" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="76338"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #35"></div>
  </section>
</div>
    <div class="postbit" id="76341" data-post-id="76341">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="acrolink" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/120/8985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  acrolink
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="jstlroot" data-post="36" data-topic="5108">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstlroot/48/9945_2.png" class="avatar"> jstlroot:</div>
<blockquote>
<p>Has any of you succeeded in making Phoenix 1.3 work with Vue through Webpack?</p>
</blockquote>
</aside>
<p>I developed some apps with Phoenix 1.3 on backend and VueJS on frontend. Decoupled, as separate projects. Phoenix as an API only backend and all frontend written in VueJS. Worked fine.</p>
<p>As for Webpack, I guess it was something set up together automatically by <code>vue-cli</code> (the generator I used). I don’t recall that I needed to do anything with Webpack, used only defaults</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="76341" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/37">Post #36</a>
	                </div>
	            </div>
              <div id="likers-container-76341" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="76341"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #36"></div>
  </section>
</div>
    <div class="postbit" id="76342" data-post-id="76342">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jstlroot" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstlroot/120/9945_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jstlroot
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="acrolink" data-post="37" data-topic="5108" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<aside class="quote no-group" data-username="jstlroot" data-post="36" data-topic="5108">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstlroot/48/9945_2.png" class="avatar"> jstlroot:</div>
<blockquote>
<p>Has any of you succeeded in making Phoenix 1.3 work with Vue through Webpack?</p>
</blockquote>
</aside>
<p>I developed some apps with Phoenix 1.3 on backend and VueJS on frontend. Decoupled, as separate projects. Phoenix as an API only backend and all frontend written in VueJS. Worked fine.</p>
<p>As for Webpack, I guess it was something set up together automatically by <code>vue-cli</code> (the generator I used). I don’t recall that I needed to do anything with Webpack, used only defaults</p>
</blockquote>
</aside>
<p>Firstly, thank you for your quick reply!</p>
<p>The decoupled approach interests me a lot as well. It makes it possible to swap one side or another more naturally as needed and I think it’s more scalable as well.</p>
<p>One question that comes to mind is how do you serve the client-side? I guess you’re not using the Phoenix server to do it?</p>
<p>Also, (forseeing a follow-up question) are you using the same solution (guessing two separate servers) for production? I see that with <code>npm run build</code>, I can build it for use in production. Do I simply use a generic web server like Apache from there? I apologize for the non Elirix-related question. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p>Can’t wait to know your take on this! =)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="76342" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/38">Post #37</a>
	                </div>
	            </div>
              <div id="likers-container-76342" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="76342"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #37"></div>
  </section>
</div>
    <div class="postbit" id="76348" data-post-id="76348">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="acrolink" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/120/8985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  acrolink
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/jstlroot" rel="nofollow">@jstlroot</a> As for <code>VueJS</code> production, yes you can use any web server to serve the client side application. Under development and production you need to do this with your web server (I use <code>Nginx</code>):</p>
<p>Redirect all requests to the <code>VueJS</code> application except for all <code>/api</code> routes, they should be sent to the Phoenix back-end.</p>
<p>Yes, for development I use 3 servers actually:</p>
<p>Client &gt;&gt; 1. Nginx &gt;&gt;<br>
2. VueJS or<br>
3. Phoenix</p>
<p>Production:</p>
<p>Client &gt;&gt; 1. Nginx &gt;&gt;<br>
Serving static files directly (HTML/JS)<br>
or 2. passing request to Phoenix</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="76348" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/39">Post #38</a>
	                </div>
	            </div>
              <div id="likers-container-76348" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="76348"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #38"></div>
  </section>
</div>
    <div class="postbit" id="76360" data-post-id="76360">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jstlroot" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jstlroot/120/9945_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jstlroot
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="acrolink" data-post="39" data-topic="5108" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<p><a class="mention" href="/u/jstlroot" rel="nofollow">@jstlroot</a> As for <code>VueJS</code> production, yes you can use any web server to serve the client side application. Under development and production you need to do this with your web server (I use <code>Nginx</code>):</p>
<p>Redirect all requests to the <code>VueJS</code> application except for all <code>/api</code> routes, they should be sent to the Phoenix back-end.</p>
<p>Yes, for development I use 3 servers actually:</p>
<p>Client &gt;&gt; 1. Nginx &gt;&gt;<br>
2. VueJS or<br>
3. Phoenix</p>
<p>Production:</p>
<p>Client &gt;&gt; 1. Nginx &gt;&gt;<br>
Serving static files directly (HTML/JS)<br>
or 2. passing request to Phoenix</p>
</blockquote>
</aside>
<p>Super cool! I’ll give that a spin!</p>
<p>Thank you <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="76360" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/40">Post #39</a>
	                </div>
	            </div>
              <div id="likers-container-76360" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="76360"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #39"></div>
  </section>
</div>
    <div class="postbit" id="99123" data-post-id="99123">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="paulanthonywilson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/paulanthonywilson/120/30478_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  paulanthonywilson
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>FYI, just got Vue running on edge(ish) Phoenix, which now defaults to Webpack.  Here’s the diff between the default  <code>assets/webpack.config.js</code> and the version running Vue. (I put the view app in <code>./js</code> along with the other Javascripts.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">const path = require('path');
const glob = require('glob');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
+ const VueLoaderPlugin = require('vue-loader/lib/plugin');


module.exports = (env, options) =&gt; ({
  optimization: {
    minimizer: [
      new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
      new OptimizeCSSAssetsPlugin({})
    ]
  },
  entry: {
    './js/app.js': ['./js/app.js'].concat(glob.sync('./vendor/**/*.js'))
  },
  output: {
    filename: 'app.js',
    path: path.resolve(__dirname, '../priv/static/js')
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader'
        }
      },
+      {
+       test: /\.vue$/,
+        loader: 'vue-loader'
+      },
      {
        test: /\.css$/,
        use: [MiniCssExtractPlugin.loader, 'css-loader']
      }
    ]
  },
+  resolve: {
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js'
+    },
+    extensions: ['*', '.js', '.vue', '.json']
+  },
  plugins: [
    new MiniCssExtractPlugin({ filename: '../css/app.css' }),
    new CopyWebpackPlugin([{ from: 'static/', to: '../' }]),
+    new VueLoaderPlugin(),
  ]
});

</code></pre>
<p>Putting this here in case it saves someone a bit of time when 1.4 comes out.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="99123" data-batch-url="/posts/batch_likers">
                        6
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/how-to-get-phoenix-vuejs-working-together/5108/41">Post #40</a>
	                </div>
	            </div>
              <div id="likers-container-99123" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="99123"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #40"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/5108/load_more?page=5">Load more posts (2 remaining)</a>
</div></template></turbo-stream>