Skip to content

Commit

Permalink
hotfix: fix process.env.ENV access (#15)
Browse files Browse the repository at this point in the history
* hotfix: fix `process.env.ENV` access
* feat: reduce bundle size
* feat: add CI workflows badge

---------

Co-authored-by: raojinlin <raojinlin302@gmail.com>
  • Loading branch information
raojinlin and raojinlin authored Sep 19, 2024
1 parent a152dc9 commit f8231c2
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 1,459 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ extension/manifest.json
node_modules/
.idea/
*.map
*.LICENSE.txt
*.LICENSE.txt
env.js
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Chrome Extension React Antd Template

![Node.js CI workflows](https://github.com/raojinlin/chrome-extension-react-antd-template/actions/workflows/node.js.yml/badge.svg?event=push)

这是一个基于React和Ant Desigin UI库的Chrome插件模板项目。该模板封装了一些常见的基础库,如日志和消息通信,可用于快速构建React插件。

Expand Down Expand Up @@ -181,7 +182,7 @@ consoleLogger.info('message to console');
```js
import { getConfig } from './lib/config';

const config = getConfig(process.env.NODE_ENV);
const config = getConfig(process.env.ENV);
```

### 在content-script使用插件内的资源(文件、html、css等)
Expand Down
Loading

0 comments on commit f8231c2

Please sign in to comment.