Improve css module support
- Add readable identifiers - Export as camel case
This commit is contained in:
parent
ebf0d3b47f
commit
42ea5af2eb
3 changed files with 12 additions and 3 deletions
|
@ -67,7 +67,10 @@ const configuration: webpack.Configuration = {
|
|||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
modules: true,
|
||||
modules: {
|
||||
localIdentName: '[name]__[local]--[hash:base64:5]',
|
||||
exportLocalsConvention: 'camelCaseOnly',
|
||||
},
|
||||
sourceMap: true,
|
||||
importLoaders: 1,
|
||||
},
|
||||
|
|
|
@ -54,7 +54,10 @@ const configuration: webpack.Configuration = {
|
|||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
modules: true,
|
||||
modules: {
|
||||
localIdentName: '[name]__[local]--[hash:base64:5]',
|
||||
exportLocalsConvention: 'camelCaseOnly',
|
||||
},
|
||||
sourceMap: true,
|
||||
importLoaders: 1,
|
||||
},
|
||||
|
|
|
@ -49,7 +49,10 @@ const configuration: webpack.Configuration = {
|
|||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
modules: true,
|
||||
modules: {
|
||||
localIdentName: '[name]__[local]--[hash:base64:5]',
|
||||
exportLocalsConvention: 'camelCaseOnly',
|
||||
},
|
||||
sourceMap: true,
|
||||
importLoaders: 1,
|
||||
},
|
||||
|
|
Reference in a new issue