0.1.0 • Published 7 years ago

csslocals-from-vue-loader v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

csslocals-from-vue-loader

Import the configured css classname-localizedId maps, and export all the maps to exports.locals.

In a Vue module there may be more then one style module. If there are more than one style module in a .vue file (single-file components file), every module should have a name (as module="moduleXXX" attribute, if do not assign a name then use default name "$styel").

Normally we prepand the csslocals-from-vue-loader to vue-loader. But should not use extract-text-webpack-plugin in vue-loader's option to extract css file due to the plugin's special compiling methord. Use style-loader in vue-loader options is OK.

Options:

{
  exports: [
    "$style",           // default, the name of style module will be imported. 
    "moduleXXX"
  ]
}
0.1.0

7 years ago