[Vuejs]-How load external svg in css section in Vue

0👍

From the documentation of the css-loader:

To import assets from a node_modules path (include resolve.modules)
and for alias, prefix it with a ~:

url(~module/image.png) => require('module/image.png')
url('~module/image.png') => require('module/image.png')
url(~aliasDirectory/image.png) => require('otherDirectory/image.png')

Leave a comment