Improvement
- Feat: support env vaiables #5164
ice.js will load additional environment variables from the following files in project root
.env # loaded in all cases
.env.local # loaded in all cases, recommended ignored by git
.env.[mode] # only loaded in specified mode
.env.[mode].local # only loaded in specified mode, recommended ignored by git
To prevent accidentally leaking env variables to the client, only variables prefixed with ICE_
are exposed to project code
- Feat: support rename main css chunk name #5159
Specify css chunk name in your build.json
config:
{
"cssChunkNames": "index-main.css"
}
css main chunk will be always named as index-main.css
when build in vite mode
- Feat: optimize webpack-dev-mock transformer #5162
speed up mock service by esbuild