Skip to content

Commit

Permalink
Improve plugin-vue output
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Oct 14, 2020
1 parent bf29ebd commit 63d574e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/plugin-vue/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ module.exports = function plugin(snowpackConfig) {
if (sourceMaps && js.map) output['.js'].map += JSON.stringify(js.map);
}

// clean up
if (!output['.js'].code) delete output['.js'];
if (!output['.css'].code) delete output['.css'];

return output;
},
};
Expand Down

0 comments on commit 63d574e

Please sign in to comment.