Fork from css-loader, with following additional feature:
:import()
from .js file. This statement will import the classname-localized_name maps from js module. The js module being imported should export a 'locals' map object. You may use csslocals-from-js-loader to export the expected 'locals' object.:import()
from .vue file. This statement will import the classname-localized_name maps from vue components. The vue components should export a 'locals' map object, this may be done by using a webpack loader csslocals-from-vue-loader.- pseudo selector
:reflocal(.classname)
. This selector will change the classname to the localized_name which imported from :import() statement.