<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mjmnagy</title>
    <description>The latest articles on DEV Community by mjmnagy (@mjmnagy).</description>
    <link>https://dev.to/mjmnagy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F459036%2Fd662dd89-4f60-4fad-96c6-8f00a49d0074.jpeg</url>
      <title>DEV Community: mjmnagy</title>
      <link>https://dev.to/mjmnagy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mjmnagy"/>
    <language>en</language>
    <item>
      <title>Vue: How to build bundle for Nuxt with vue-cli-service?</title>
      <dc:creator>mjmnagy</dc:creator>
      <pubDate>Thu, 27 Aug 2020 05:39:45 +0000</pubDate>
      <link>https://dev.to/mjmnagy/vue-how-to-build-bundle-for-nuxt-with-vue-cli-service-1oo7</link>
      <guid>https://dev.to/mjmnagy/vue-how-to-build-bundle-for-nuxt-with-vue-cli-service-1oo7</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/61409902/vue-how-to-build-bundle-for-nuxt-with-vue-cli-service" rel="noopener noreferrer"&gt;
            Vue: How to build bundle for Nuxt with vue-cli-service?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Apr 24 '20&lt;/span&gt;
            &lt;span&gt;Comments: 7&lt;/span&gt;
            &lt;span&gt;Answers: 2&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/61409902/vue-how-to-build-bundle-for-nuxt-with-vue-cli-service" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          4
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;A user tries to use &lt;a href="https://github.com/avidofood/vue-responsive-video-background-player/issues/8" rel="nofollow noreferrer noopener"&gt;my package&lt;/a&gt; for nuxt.js, but gets the error: &lt;code&gt;document is not defined&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I found the first issue. When I build the bundle with &lt;code&gt;"build-bundle": "vue-cli-service build --target lib --name index ./src/index.js"&lt;/code&gt;
&lt;code&gt;vue-style-loader&lt;/code&gt; is being used. This, however, results in the error for using…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/61409902/vue-how-to-build-bundle-for-nuxt-with-vue-cli-service" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/63588001/vue-extract-css-didnt-get-a-result-from-child-compiler" rel="noopener noreferrer"&gt;
            Vue: Extract CSS - Didn't get a result from child compiler
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 25 '20&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 1&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/63588001/vue-extract-css-didnt-get-a-result-from-child-compiler" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I am trying to write a &lt;code&gt;vue&lt;/code&gt; component library that will work in &lt;code&gt;nuxt&lt;/code&gt; and &lt;code&gt;vue&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The issue i was originally having was &lt;code&gt;document is not defined&lt;/code&gt; when using &lt;code&gt;Extract CSS&lt;/code&gt;. from reading, i understand the &lt;code&gt;css-loader&lt;/code&gt; webpack settings need to be adjusted to use a different module…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/63588001/vue-extract-css-didnt-get-a-result-from-child-compiler" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>vue</category>
      <category>webpack</category>
    </item>
  </channel>
</rss>
