javascript - How to reference different css styles based on variables in vuejs
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-07-05 10:37:08
0
1
650

Required to change the previous project to vue framework. Now we have css and everything. Now I want to introduce different css files based on variables. Similar to the logical effect in if(){//import from ''xxx.css}. I would like to ask everyone, can it be implemented in the vue framework, or through webpack?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
三叔

Use webpack code splitting and write like this when quoting
`
require.ensure('xxx.css')
`

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template