Skip to content

Commit

Permalink
feat(defaults): add dev mode and version
Browse files Browse the repository at this point in the history
  • Loading branch information
phucbm committed Oct 20, 2024
1 parent ee68330 commit 9681fb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/configs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const packageInfo = require('../package.json');

/**
* Classes
* */
Expand Down Expand Up @@ -31,6 +33,10 @@ export const ATTRS = {
* Defaults
* */
export const DEFAULTS = {
// set dev to true when run production
dev: process.env.NODE_ENV === 'development', // development mode
version: packageInfo.version,

outerClass: '',
activeHtmlClass: '',

Expand Down

0 comments on commit 9681fb8

Please sign in to comment.