diff --git a/config/watcher.ts b/config/watcher.ts index f974e4283..1235e0e9c 100644 --- a/config/watcher.ts +++ b/config/watcher.ts @@ -42,7 +42,9 @@ const config: Config = { }, runDocz: { paths: [], - executor: new LongRunningExecutor("npm run docz -- dev"), + executor: new LongRunningExecutor( + "NODE_ENV=development npm run docz -- dev" + ), }, }, defaultSet: "client", diff --git a/doczrc.js b/doczrc.js index 9d7ef1b12..8f78be5b9 100644 --- a/doczrc.js +++ b/doczrc.js @@ -25,6 +25,10 @@ export default { options: { modules: true, importLoaders: 1, + localIdentName: + process.env.NODE_ENV === "production" + ? "[hash:base64]" + : "[name]-[local]-[hash:base64:5]", }, }, {