You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
Fork from css-loader, with following additional feature:
4
4
5
-
1.```:import()``` from .js file. This statement will import the classname-localized_name maps from js module.
6
-
2.```:import()```from .vuefile. This statement will importtheclassname-localized_namemapsfrom vue components.
7
-
3. pseudo statment ```:reflocal(.classname)```. This statement will change the classname to the localized_name which imported from :import() statement.
8
-
5
+
1.```: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](https://github.com/Ahmong/csslocals-from-js-loader) to export the expected 'locals' object.
6
+
2.```:import()```from .vuefile. This statement will importtheclassname-localized_namemapsfromvuecomponents. Thevuecomponentsshouldexporta'locals'mapobject, thismaybedonebyusingawebpackloader [csslocals-from-vue-loader](https://github.com/Ahmong/csslocals-from-vue-loader).
7
+
3. pseudo selector ```:reflocal(.classname)```. This selector will change the classname to the localized_name which imported from :import() statement.
0 commit comments