How to load sass depending on the conditions?

Doing a project on nuxt. Is such a problem.
There are three different html template. Templates will vary, depending on what came from the server.
On each pattern to your SASS file.

Whether it is possible to load different styles?
For example, the server returned a "Template 1" I load main1.sass
March 19th 20 at 08:40
1 answer
March 19th 20 at 08:42
const addLink = path => {
 let link = document.createElement("link")
 link.setAttribute("rel", "stylesheet")
 link.setAttribute("href", path)

document.getElementsByTagName("head")[0].appendChild(link)
}

const templatenumber = 1

addLink('./style' + templatenumber + '.scss')

Find more questions by tags Vue.jsWebpackJavaScript