Skip to content

Commit a4d0e5c

Browse files
committed
Rewrite the README.md
1 parent 09ac87b commit a4d0e5c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Fork from css-loader, with following additional feature:
44

5-
1. ```:import()``` from .js file. This statement will import the classname-localized_name maps from js module.
6-
2. ```:import()``` from .vue file. This statement will import the classname-localized_name maps from 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 .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](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

Comments
 (0)