Imagine I have created a component called a.vue
. Once webpack has packaged it, the resulting HTML using a.vue
may appear like this:
......
<script src="page.js"></script>
<link href="page.css" rel="stylesheet"/>
......
The JS and CSS from a.Vue
are combined into page.js
and page.css
. My question is how to separate out the JS and CSS into individual files. The updated HTML would then look like:
<script src="a.js"></script>
<script src="page.js"></script>
<link href="a.css" rel="stylesheet"/>
<link href="page.css" rel="stylesheet"/>
I understand that this may not be recommended practice, but I am curious about the process for doing so.