diff --git a/nwb.config.js b/nwb.config.js index d299cd4..e87e50d 100644 --- a/nwb.config.js +++ b/nwb.config.js @@ -14,5 +14,17 @@ module.exports = { "@babel/preset-react", "@babel/preset-env" ] + }, + webpack: { + rules: { + css: { + modules: true, + localIdentName: ( + process.env.NODE_ENV === 'production' + ? '[path][name]-[local]-[hash:base64:5]' + : '[hash:base64:5]' + ) + } + } } } diff --git a/package.json b/package.json index 0109aee..a3668ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluelib", - "version": "0.23.0", + "version": "0.23.1", "description": "React components for Bluelib", "main": "lib/index.js", "module": "es/index.js",